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.

Fixed Columns

Another feature of xamGrid™ is the fixed column functionality. This feature allows you to create a fixed (non-scrolling) column so that it remains in view when the grid is scrolled horizontally.

When your end user clicks the column indicator in the header, the column will shift to the left or right (depending on your settings) of xamGrid and will remain fixed during horizontal scrolling.

This feature allows your end user to keep certain data constantly in view and they can compare or contrast other column data to it.

By default, the fixed column functionality is turned off.

You can enable fixed columns on your xamGrid™ by simply setting the FixedColumnSettings object’s AllowFixedColumns property to one of the following values of the FixedColumnType enumeration:

  • Indicator – This value specifies that fixed columns are enabled, and your end user can fix a column by clicking on the fixed columns indicator in the column’s header.

  • DropArea – This value specifies that fixed columns are enabled, and your end user can fix a column by dragging it to a designated area of xamGrid.

  • Both – This value specifies that fixed columns are enabled, and your end user can fix a column by clicking on the fixed columns indicator in the column’s header or by dragging it to a designated area of xamGrid

  • Disabled – This value turns off fixed columns.

The following code demonstrates how to enable fixed columns.

In XAML:

<ig:XamGrid.FixedColumnSettings>
   <ig:FixedColumnSettings AllowFixedColumns="Both"/>
</ig:XamGrid.FixedColumnSettings>

In Visual Basic:

Imports Infragistics.Controls.Grids
...
Me.MyGrid.FixedColumnSettings.AllowFixedColumns = FixedColumnType.Both

In C#:

using Infragistics.Controls.Grids;
...
this.MyGrid.FixedColumnSettings.AllowFixedColumns = FixedColumnType.Both;

The following screen shot displays a grid with a fixed column.

Fixed Columns