CGXRangeList::MoveRows
void MoveRows(ROWCOL nFromRow, ROWCOL nToRow, ROWCOL nDestRow, ROWCOL nRowCount = GX_MAXROWCOL);
nFromRow
Specifies the first row.
nToRow
Specifies the last row.
nDestRow
Specifies the destination row.
nRowCount
Specifies the actual number of rows in the grid or GX_MAXROWCOL if the row count is unknown.
Remarks
Call this method to update the ranges in the list after you have moved rows in the table.
By specifying nRowCount you can make sure that individual ranges will not span over the last row in the grid. For example, if a range spans from row 1 to 5 and you move this range to the bottom of the grid, the bottom row of the range will not become bigger than nRowCount.