ASP.NET MVC Controls | ComponentOne
Working with Controls / FlexGrid / Work with FlexGrid / Selection Modes
In This Topic
    Selection Modes
    In This Topic

    By default, FlexGrid allows you to select a range of cells with the mouse or keyboard, similar to Excel. The SelectionMode property allows you to change that so that you can select a row, range of rows, multiple ranges, non-contiguous rows (like in a List-Box), single cell, range of cells or disable selection altogether.

    To specify the selection behavior in FlexGrid, set the SelectionMode to:

    The following image shows how the FlexGrid appears on setting SelectionMode to Row. The example uses Sale.cs model added in the QuickStart section.

    The following code examples demonstrate how to set the selection mode in FlexGrid.

    In Code


    Copy Code
    See Also