Using Different Selection Modes in FlexGrid
By default, FlexGrid allows you to select a range of cells with the mouse or keyboard, just like Excel. The selectionMode property allows you to change that so that you can select a row, a range of rows, non-contiguous rows (like in a list-box), a single cell, or disable selection altogether.
In this mode, the user cannot select cells using the mouse or keyboard.
smFlexGrid.selectionMode = 'None';
In this mode, the user can select only a single cell at a time.
smFlexGrid.selectionMode = 'Cell';
In this mode, the user can select contiguous blocks of cells.
smFlexGrid.selectionMode = 'CellRange';
In this mode, the user can select a single row at a time.
smFlexGrid.selectionMode = 'Row';
In this mode, the user can select contiguous rows.
smFlexGrid.selectionMode = 'RowRange';
In this mode, the user can select non-contiguous rows.
smFlexGrid.selectionMode = 'ListBox';