[]
        
(Showing Draft Content)

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.

None

In this mode, the user cannot select cells using the mouse or keyboard.

 smFlexGrid.selectionMode = 'None';

Cell

In this mode, the user can select only a single cell at a time.

 smFlexGrid.selectionMode = 'Cell';

CellRange (Default)

In this mode, the user can select contiguous blocks of cells.

 smFlexGrid.selectionMode = 'CellRange';

Row

In this mode, the user can select a single row at a time.

 smFlexGrid.selectionMode = 'Row';

RowRange

In this mode, the user can select contiguous rows.

 smFlexGrid.selectionMode = 'RowRange';

ListBox

In this mode, the user can select non-contiguous rows.

 smFlexGrid.selectionMode = 'ListBox';