FlexGrid's AllowResizing property allows a user to resize columns/rows by simply touching and dragging the handle between two columns/rows. This property accepts the values from the GridAllowResizing enum that specifies a value to define which elements can be resized.
You can set the AllowResizing property of FlexGrid to None in case you want to restrict resizing at runtime.
C# |
Copy Code
|
---|---|
grid.AllowResizing = GridAllowResizing.None; |
C# |
Copy Code
|
---|---|
<c1:FlexGrid x:Name="grid" AutoGenerateColumns="False" AllowResizing="None"> |
The resizing functionality for columns/rows is useful when a user wants to add data in FlexGrid. The user can simply resize the column/row 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.
C# |
Copy Code
|
---|---|
grid.AllowResizing = GridAllowResizing.Columns; |
C# |
Copy Code
|
---|---|
<c1:FlexGrid x:Name="grid" AutoGenerateColumns="False" AllowResizing="Columns"> |