Version

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 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;