<ig:XamGrid.FixedColumnSettings> <ig:FixedColumnSettings AllowFixedColumns="Both"/> </ig:XamGrid.FixedColumnSettings>
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.
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.