GridColumn.Fixed Property

Gets or sets a value specifying whether the column takes part in horizontal View scrolling or is anchored to a View edge.

Namespace: DevExpress.XtraGrid.Columns

Assembly: DevExpress.XtraGrid.v21.1.dll

Declaration

[DXCategory("Behavior")]
[DefaultValue(FixedStyle.None)]
[XtraSerializableProperty]
public virtual FixedStyle Fixed { get; set; }

Property Value

Type Default Description
FixedStyle

None

A FixedStyle enumeration value.

Available values:

Name Description
None

The band or column takes part in horizontal scrolling.

Left

The band or column is anchored to the View’s left edge.

Right

The band or column is anchored to the View’s right edge.

MiddleLeft

The band or column is not anchored until a user scrolls it up to the left edge. When the column reaches the left edge, it becomes fixed while other columns continue to scroll.

Remarks

If the GridOptionsView.ColumnAutoWidth option is set to false and the total column width exceeds the View width, you can scroll the View horizontally. If you need particular columns to be displayed on screen regardless of scrolling performed, set those columns’ Fixed property to either FixedStyle.Left or FixedStyle.Right.

You can anchor an unlimited number of columns to any View edge.

For additional information about fixed columns, read the Fixed Columns topic.

See Also