CGXBrowserGrid::DeleteRows
virtual void DeleteRows(const CRowColArray& awRowStart, const CRowColArray& awRowEnd, BOOL* pbSuccess = NULL);
void DeleteRows(ROWCOL nFromRow, ROWCOL nToRow);
void DeleteRows(const CGXRange& range);
awRowStart
Reference to an array of ROWCOL attributes which holds the first row of each range to be deleted.
awRowEnd
Reference to an array of ROWCOL attributes which holds the last row of each range to be deleted.
nFromRow
Specifies the first row in the range of cells which should be deleted.
nToRow
Specifies the last row in the range of cells which should be deleted.
range
Specifies the range of cells to be deleted.
pbSuccess
Pointer to a BOOL for storing the success value of the operation.
Remarks
Call this method if you want to delete rows from the grid. You need not select a range of rows before calling this method because you can directly specify the range of rows to be deleted.
DeleteRows will loop through the specified array of rows and delete them from the data source.
If you have derived your own class from CGXBrowserGrid and bound it to an external data source, and if you want to support deleting rows in your bound data source, you should override the virtual variant of DeleteRows.
The other two variants are simple wrappers for the virtual variant. They simplify calling this method.