Freezing a DevExpress XtraGrid Column

If we want to fix and freeze the columns on the screen in DevExpress XtraGrid, the following steps are followed.

  • 1 - "Run Designer" opens.
  • 2 - In the "Fixed" feature from the left panel, "Left" is selected for the left side and "Right" is selected for the right side.

Fixing can be done for more than 1 column in the same direction. The fixation order in this case is the same as the column order.

An example of setting it as code is given below.


this.ID.Fixed = DevExpress.XtraGrid.Columns.FixedStyle.Right;
this.NAME.Fixed = DevExpress.XtraGrid.Columns.FixedStyle.Right;
this.AMOUNT.Fixed = DevExpress.XtraGrid.Columns.FixedStyle.Left;       



You May Interest

DevExpress XtraGrid Clicking Cells to Edit

Demonstration of DevExpress XtraGrid Search Panel

DevExpress XtraGrid Column Header Post Settings

Getting Value of DevExpress XtraGrid Column

DevExpress XtraGrid Column Header Height Adjustment