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.
Disable Resizing of Certain Columns
You can disable resizing of certain columns on the xamGrid™ control, even though you have column resizing enabled on your entire xamGrid. For example, if you have a sorted column, you may not want your end users to resize this column.
To achieve this, you can set the Column object’s IsResizable property to False, as demonstrated in the following code snippet.
<ig:XamGrid x:Name="MyGrid" AutoGenerateColumns="False">
<ig:XamGrid.ColumnResizingSettings>
<ig:ColumnResizingSettings AllowColumnResizing="Indicator" />
</ig:XamGrid.ColumnResizingSettings>
<ig:XamGrid.Columns>
<ig:TextColumn Key="ProductID"/>
<ig:TextColumn Key="ProductName" IsResizable="/>
...
</ig:XamGrid.Columns>
</ig:XamGrid>
Imports Infragistics.Controls.Grids
...
Dim ColumnNotResizable As Column = Me.MyGrid.Columns.DataColumns("ProductName")
ColumnNotResizable.IsResizable = False
using Infragistics.Controls.Grids;
...
Column ColumnNotResizable = this.MyGrid.Columns.DataColumns["ProductName"];
ColumnNotResizable.IsResizable = false;