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.

Setting the Drop Area Location

You can configure an area on the xamGrid™ control where your end users can drag a column into and it will automatically become fixed. Also when your end users drag a fixed column from this area, it will automatically return to its original unpinned position.

Setting the FixedColumnSettings object’s FixedDropAreaLocation property to left, right or both will determine the location of the drop area.

In XAML:

<ig:XamGrid.FixedColumnSettings>
   <ig:FixedColumnSettings AllowFixedColumns="DropArea"
      FixedDropAreaLocation="Left"/>
</ig:XamGrid.FixedColumnSettings>

In Visual Basic:

Imports Infragistics.Controls.Grids
...
Me.MyGrid.FixedColumnSettings.AllowFixedColumns = FixedColumnType.DropArea
Me.MyGrid.FixedColumnSettings.FixedDropAreaLocation = FixedDropAreaLocation.Left

In C#:

using Infragistics.Controls.Grids;
...
this.MyGrid.FixedColumnSettings.AllowFixedColumns = FixedColumnType.DropArea;
this.MyGrid.FixedColumnSettings.FixedDropAreaLocation = FixedDropAreaLocation.Left;