ComponentOne Xamarin.iOS Documentation
Controls / FlexGrid / Features / Resizing Columns
In This Topic
    Resizing Columns
    In This Topic

    FlexGrid's AllowResizing property allow users to resize the column by simply touching and dragging the handle between two columns. The AllowResizing property accepts value from the GridAllowResizing enumeration.

    In case you want to restrict resizing at runtime, set the AllowResizing property of FlexGrid to None. Moreover, to allow resizing for specific columns, set the AllowResizing property for a particular column instead of the entire FlexGrid. The resizing functionality for columns is useful when a user wants to add data in FlexGrid. The user can simply resize the column as per the requirement directly on the device without requiring to change or set the width in code.

    The following code example demonstrates how to set the AllowResizing property in FlexGrid. The example uses sample created in the Quick Start section.

    In Code

    Copy Code
    // Set AllowResizing property for FlexGrid
    grid.AllowResizing = GridAllowResizing.Both;
    // Set AllowResizing property for specific column
    grid.Columns[1].AllowResizing = true;