GridControl::SetSelection

 

Description

Sets whether the control will select cells in a free range, by row, by column, or like a listbox.

Syntax

int SetSelection( int nSelMode )

Parameters

nSelMode
[input] SelModeSettings
flexSelectionFree : Allows selections to be made as usual, spreadsheet-style.
flexSelectionByRow : Forces selections to span entire rows. Useful for implementing record-based displays.
flexSelectionByColumn : Forces selections to span entire columns. Useful for selecting ranges for a chart or fields for sorting.
flexSelectionListBox : Similar to flexSelectionByRow, but allows non-continuous selections. CTRL-clicking with the mouse toggles the selection for an individual row. Dragging the mouse over a group of rows toggles their selected state.

Return

Returns the original setting

Examples

See examples of MoveItemUp

Remark

See Also

GridControl::SetAllowSelection

header to Included

GridControl.h