Please note that this control has been retired and is now obsolete to the XamDataGrid control, and as such, we recommend migrating to that control. It will not be receiving any new features, bug fixes, or support going forward. 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;