<< Return to Main Index

< Return to Class Index

CGXGridCore::RemoveRows

virtual BOOL RemoveRows(ROWCOL nFromRow, ROWCOL nToRow, UINT flags = GX_UPDATENOW, GXCmdType ctCmd = gxDo);

nFromRow

Specifies the first row.

nToRow

Specifies the last row.

flags

Specifies the update technique. See UpdateRemoveRows 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 rows.

Rows are removed with StoreRemoveRows. The display is updated with UpdateRemoveRows.

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

See Also

CGXGridCore::StoreRemoveRows CGXGridCore::UpdateRemoveRows CGXGridCore::LockUpdate

CGXGridCore

Class Overview | Class Members