<< Return to Main Index

< Return to Class Index

CGXWrappedGrid::SelectWGRange

virtual void SelectWGRange(const CGXRange& range, BOOL bSelect = TRUE, BOOL bUpdate = TRUE);

range

Reference to a range of logical cells to be selected or deselected.

bSelect

TRUE if the range shall be selected; FALSE if the range shall be deselected.

bUpdate

TRUE if the change grid shall be made visible; FALSE if the grid shall not be updated.

Remarks

Selects or deselects a range of logical cells, rows or columns and inverts the cells.

The rangelist is adapted by calling StoreWGSelectRange; the display is updated with a call to Redraw.

There is also another method SetWGSelection (the equivalent of CGXGridCore::SetSelection) which allows you to select ranges. SetWGSelection is more advanced and only works with ranges stored in the range-list.

SelectWGRange is simpler in that you can directly pass a range and you don’t have to take care of allocating new ranges and adding them to the range-list.

CGXWrappedGrid

Class Overview | Class Members