SelectionUnit
Description
A SelectionUnit
is an enum that specifies the unit to use for selection. The default DataGridOptions.selectionUnit
is Row, which means that data rows can be selected.
Possible Values
Name |
Type |
Value |
Description |
---|---|---|---|
Row |
string |
“row” |
Data rows can be selected. |
Cell |
string |
“cell” |
Data cells can be selected. |
Example
In this example, the DataGridOptions.selectionUnit
is set to Cell, meaning data cells can be selected.
const options = {
selectionUnit: Xceed.SelectionUnit.Cell
};
const datagrid = new Xceed.DataGrid("containerId", options);
Need help? Contact us!