SelectionMode
Description
A SelectionMode
is an enum that specifies the mode to use for selection.
The default DataGridOptions
.selectionMode
is Multiple, which means that many rows can be selected with the “Shift” and “Ctrl” keys.
Possible Values
Name |
Type |
Value |
Description |
---|---|---|---|
None |
string |
“none” |
No row can be selected. |
Multiple |
string |
“multiple” |
Many rows can be selected using mouse clicks in combination with the Ctrl and/or Shift key(s). |
Example
In this example, the DataGridOptions
.selectionMode
is set to None, meaning the selection will be deactivated.
const options = {
selectionMode: Xceed.SelectionMode.None
}
};
const datagrid = new Xceed.DataGrid("containerId", options);
Need help? Contact us!