FlexGrid for WinForms
SelectionMode Property



Gets or sets the grid's selection behavior.
Syntax
'Declaration
 
<C1DescriptionAttribute("Gets or sets the grid selection mode.")>
<DefaultValueAttribute()>
<C1CategoryAttribute("Behavior")>
Public Property SelectionMode As SelectionModeEnum
'Usage
 
Dim instance As C1FlexGridBase
Dim value As SelectionModeEnum
 
instance.SelectionMode = value
 
value = instance.SelectionMode
[C1Description("Gets or sets the grid selection mode.")]
[DefaultValue()]
[C1Category("Behavior")]
public SelectionModeEnum SelectionMode {get; set;}
[C1Description("Gets or sets the grid selection mode.")]
[DefaultValue()]
[C1Category("Behavior")]
public:
property SelectionModeEnum SelectionMode {
   SelectionModeEnum get();
   void set (    SelectionModeEnum value);
}
Remarks

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.

Requirements

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

Reference

C1FlexGridBase Class
C1FlexGridBase Members

 

 


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

Send Feedback