CGXRangeList::MoveCols

void MoveCols(ROWCOL nFromCol, ROWCOL nToCol, ROWCOL nDestCol, ROWCOL nColCount = GX_MAXROWCOL);

nFromCol

Specifies the first column.

nToCol

Specifies the last column.

nDestCol

Specifies the destination column.

nColCount

Specifies the actual number of columns in the grid or GX_MAXROWCOL if the column count is unknown.

Remarks

Call this method to update the ranges in the list after you have moved columns in the table.

By specifying nColCount you can make sure that individual ranges will not span over the last column in the grid. For example, if a range spans from column 1 to 5 and you move this range to the rightmost edge of the grid, the right column of the range will not become bigger than nColCount.

CGXRangeList

 Class Overview |  Class Members