Version

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 Moving of Certain Columns

You can disable the moving of certain columns on your xamGrid™ control, even though you have column moving enabled on the entire grid. For example, if you have a sorted column you may not want your end users to move this column.

To achieve this, you simply set the Column object’s IsMovable property to false, as demonstrated in the following code snippet.

In XAML:

<ig:TextColumn Key="ProductName" IsMovable="/>

In Visual Basic:

Imports Infragistics.Controls.Grids
...
Dim ColumnNotMovable As Column =Me.MyGrid.Columns.DataColumns("ProductName")
ColumnNotMovable.IsMovable = False

In C#:

using Infragistics.Controls.Grids;
...
Column ColumnNotMovable = this.MyGrid.Columns.DataColumns["ProductName"];
ColumnNotMovable.IsMovable = false;