Version

Disable Sorting on Certain Columns

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.

You can disable sorting on certain columns on xamGrid™, even though you have enabled sorting on the entire grid. For example if you have a fixed column you may not want your end users to sort on this column.

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

In XAML:

<ig:TextColumn Key="ProductID" IsSortable="False" />

In Visual Basic:

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

In C#:

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