Xceed DataGrid for WPF v7.2 Documentation
SelectionUnit Property


Xceed.Wpf.DataGrid Assembly > Xceed.Wpf.DataGrid Namespace > DataGridControl Class : SelectionUnit Property
Gets or sets a value indicating which type of unit (cell or row) is used for selections in the datagrid.
Syntax
'Declaration
 
Public Property SelectionUnit As SelectionUnit
'Usage
 
Dim instance As DataGridControl

Dim value As SelectionUnit

 

instance.SelectionUnit = value

 

value = instance.SelectionUnit
public SelectionUnit SelectionUnit {get; set;}

Property Value

A SelectionUnit value indicating which type of unit is used for selections in the datagrid. By default, Row.
Remarks

Changing SelectionUnit resets the selection.

If the property is set to SelectionUnit.Row and you attempt to add to SelectedCellRanges, or if it is set to SelectionUnit.Cell and you attempt to add to SelectedItemRanges or SelectedItem, an exception will be thrown.

Requirements

Target Platforms: Windows 11, Windows, 10, 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

DataGridControl Class
DataGridControl Members