This example demonstrates RadGrid's cell selection functionality which is controlled through the ClientSettings.Selecting.CellSelectionMode property:
- SingleCell: switches on the single cell selection functionality.
- MutliCell: allows for the selection of multiple cells.
- Column: enables single column selection by clicking on a grid column header.
- MultiColumn: turns on multi column selection for RadGrid.
RadGrid's cells can be selected with the mouse, through the keyboard or both. Regardless of the method cell selection is applied through, the following three rules always hold true: if a given cell is currently in a non-selected state and cell selection is inflicted upon it, then the cell is selected; if a given cell is currently in a selected state and cell selection is inflicted upon it, the cell will be deselected; if cell selection is applied to a certain cell or a set of cells and neither the shift nor the ctrl keys are being held, then any previously selected cells will be deselected. The same rules go for column selection.
N.B.: The selected state of RadGrid's cells is persisted on postback but not on rebinding the grid.