Skip to main content
A newer version of this page is available. .

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.v19.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.

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.

The following code snippets (auto-collected from DevExpress Examples) contain references to the Fixed property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also