FlexGrid for WinForms
SelectionMode Property

Gets or sets the grid's selection behavior.
<C1DescriptionAttribute("Gets or sets the grid selection mode.")>
Public Property SelectionMode As SelectionModeEnum
Dim instance As C1FlexGridBase
Dim value As SelectionModeEnum
instance.SelectionMode = value
value = instance.SelectionMode
[C1Description("Gets or sets the grid selection mode.")]
public SelectionModeEnum SelectionMode {get; set;}
[C1Description("Gets or sets the grid selection mode.")]
property SelectionModeEnum SelectionMode {
   SelectionModeEnum get();
   void set (    SelectionModeEnum value);

In most selection modes, you can obtain the current selection using the Selection property.

When SelectionMode is set to SelectionModeEnum.ListBox, however, the selection may consist of a non-continuous range of rows. In this case, you can check the selection state of individual rows using the CellStyleCollection.Highlight property or obtain a collection of selected rows using the RowCollection.Selected property.


Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also


C1FlexGridBase Class
C1FlexGridBase Members



Copyright (c) GrapeCity, inc. All rights reserved.

Send Feedback