<ig:XamGrid x:Name="MyGrid"> <ig:XamGrid.ColumnResizingSettings> <ig:ColumnResizingSettings AllowColumnResizing="Indicator" AllowCellAreaResizing="True"/> </ig:XamGrid.ColumnResizingSettings> </ig:XamGrid>
We recommend that you use the xamDataGrid control instead of the xamGrid control. The xamGrid is being planned for retirement over the next few years and will not receive any new features. We will continue to provide support and critical bug fixes for the xamGrid during this time. For help or questions on migrating your codebase to the xamDataGrid, please contact support.
When using the xamGrid™ control, you can enable cell resizing. This feature allows you to not only resize on the header, but also resize on each cell.
This is a useful feature if your end user is unable to read the data contained within a cell, they can simply resize it to their desired width.
When your end user resizes a cell, the entire column will also be resized.
To enable cell resizing, you can set the ColumnResizingSettingsobject’s AllowCellAreaResizing property to True.
In XAML:
<ig:XamGrid x:Name="MyGrid"> <ig:XamGrid.ColumnResizingSettings> <ig:ColumnResizingSettings AllowColumnResizing="Indicator" AllowCellAreaResizing="True"/> </ig:XamGrid.ColumnResizingSettings> </ig:XamGrid>
In Visual Basic:
Me.MyGrid.ColumnResizingSettings.AllowCellAreaResizing = True
In C#:
this.MyGrid.ColumnResizingSettings.AllowCellAreaResizing = true;