<< Return to Main Index

< Return to Class Index

CGXGridCore::InsertRows

virtual BOOL InsertRows(ROWCOL nRow, ROWCOL nCount, int* anHeightArray = NULL, CObArray* pCellsArray = NULL, CObArray* pRowsArray = NULL, ROWCOL nColCount = 0, UINT flags = GX_UPDATENOW, GXCmdType ctCmd = gxDo);

nRow

Specifies the row id.

nCount

Specifies the number of rows to be inserted.

anHeightArray

An optional pointer to an array with the row-heights for the inserted rows. If it is NULL the inserted rows are initialized with the default row-height.

pCellsArray

An optional pointer to an array with the cell contents for the inserted cells. If it is NULL the inserted cells remain empty.

pRowsArray

An optional pointer to an array with the row-base-styles for the inserted rows.

nColCount

Specifies the number of columns stored in pCellsArray. The size of pCellsArray should be nColCount*nCount.

flags

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

Rows are inserted with StoreInsertRows. The display is updated with UpdateInsertRows.

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

The user can abort the operation.

See Also

CGXGridCore::StoreInsertRows CGXGridCore::UpdateInsertRows CGXGridCore::LockUpdate

CGXGridCore

Class Overview | Class Members