Back to Devexpress

GridView.OptionsSelection Property

windowsforms-devexpress-dot-xtragrid-dot-views-dot-grid-dot-gridview-3f69770b.md

latest2.5 KB
Original Source

GridView.OptionsSelection Property

Provides access to the View’s selection options.

Namespace : DevExpress.XtraGrid.Views.Grid

Assembly : DevExpress.XtraGrid.v25.2.dll

NuGet Packages : DevExpress.Win.Grid, DevExpress.Win.Navigation

Declaration

csharp
[DXCategory("Options")]
[XtraSerializableProperty(XtraSerializationVisibility.Content, XtraSerializationFlags.DefaultValue)]
public GridOptionsSelection OptionsSelection { get; }
vb
<DXCategory("Options")>
<XtraSerializableProperty(XtraSerializationVisibility.Content, XtraSerializationFlags.DefaultValue)>
Public ReadOnly Property OptionsSelection As GridOptionsSelection

Property Value

TypeDescription
GridOptionsSelection

A GridOptionsSelection object containing the View’s selection options.

|

Remarks

The object returned provides a set of Boolean properties specifying the View’s row selection functionality. Please refer to the GridOptionsSelection class description for a list of available options and their descriptions.

csharp
using DevExpress.XtraGrid.Views.Grid;

gridView1.OptionsSelection.MultiSelect = true;
gridView1.OptionsSelection.MultiSelectMode = GridMultiSelectMode.CheckBoxRowSelect;
vb
Imports DevExpress.XtraGrid.Views.Grid

gridView1.OptionsSelection.MultiSelect = True
gridView1.OptionsSelection.MultiSelectMode = GridMultiSelectMode.CheckBoxRowSelect

See Also

GridOptionsSelection

Multiple Row and Cell Selection

GridView Class

GridView Members

DevExpress.XtraGrid.Views.Grid Namespace