CGXGridCore::RemoveCols

virtual BOOL RemoveCols(ROWCOL nFromCol, ROWCOL nToCol, UINT flags = GX_UPDATENOW, GXCmdType ctCmd = gxDo);

nFromCol

Specifies the first column.

nToCol

Specifies the last column.

flags

Specifies the update technique. See UpdateRemoveCols for more information.

ctCmd

Specifies if the executed command is undone (gxUndo), redone (gxRedo), executed the first time (gxDo) or rolled back (gxRollback).

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 removes the specified columns.

Columns are removed with StoreRemoveCols. The display is updated with UpdateRemoveCols.

The command generates a CGXRemoveColsCmd-object with undo-information.

See Also

 CGXGridCore::StoreRemoveCols  CGXGridCore::UpdateRemoveCols  CGXGridCore::LockUpdate

CGXGridCore

 Class Overview |  Class Members