ComponentOne Xamarin.iOS Documentation
Controls / FlexGrid / Features / Frozen Rows and Columns
In This Topic
    Frozen Rows and Columns
    In This Topic

    FlexGrid allows you to freeze rows and columns so that they remain visible as the user scrolls the grid. Frozen cells can be edited and selected as regular cells, exactly as in Excel. A user can freeze rows and columns separately and also simultaneously. While working with large data sets in grid, it is convenient to keep some of the rows or/and columns locked in the view by setting the values for FrozenRows and FrozenColumns properties of FlexGrid.

    Freezing a cell in the grid doesn't affect the SelectionMode of the FlexGrid. If a user has set a value of SelectionMode in FlexGrid, then the frozen cells along with the cells that are not frozen can be selected simultaneously by the user.

    In this example, the first tow column and the first row of the FlexGrid are frozen. The image below shows how the FlexGrid control appears, after applying cell freezing to rows and columns:

    The following code example demonstrates how to freeze rows and columns in FlexGrid. The example uses data source added in the Quick Start section.

    In Code

    Copy Code
    grid.FrozenColumns = 2;
    grid.FrozenRows = 1;