<< Return to Main Index

< Return to Class Index

CGXWrappedGrid::MoveWGCols

virtual BOOL MoveWGCols(ROWCOL nFromCol, ROWCOL nToCol, ROWCOL nDestCol, BOOL bInsertToTheRight = FALSE, UINT flags = GX_UPDATENOW, GXCmdType ctCmd = gxDo);

nFromCol

Specifies the first logical column.

nToCol

Specifies the last logical column.

nDestCol

Specifies the destination logical column.

bInsertToTheRight

Specify whether to insert to the right or left of the destination column.

flags

Specifies the update technique.

ctCmd

Specifies the type of the executed command. Not implemented.

Return Value

TRUE if the command has been successfully executed; it is FALSE if the command failed or if the user aborted the operation.

Remarks

Overridable command-method which moves the specified columns.

Columns are moved with StoreMoveWGCols. The display is updated with UpdateMoveWGCols.

Sometimes moving to the right of column N is not the same as moving to the left of column N+1. This is true when a row-break is immediately after N. Then, moving to the right of N and moving to the left of N+1 will move the moved columns to 2 different wrapped rows even though the resultant order of the columns will remain the same in both the cases.

See Also

CGXWrappedGrid::MoveWGRows

CGXWrappedGrid

Class Overview | Class Members