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 Cell Information Horizontal Alignment Adjustm ...

Demonstration of DevExpress XtraGrid Search Panel

Closing DevExpress XtraGrid Group Panel

DevExpress XtraGrid Clicking Cells to Edit

Putting Multi Selection and Checkbox Columns in DevExpress XtraGr ...