GridBand.Fixed Property

Gets or sets the band's behavior when the View is scrolled horizontally.

Namespace: DevExpress.XtraGrid.Views.BandedGrid

Assembly: DevExpress.XtraGrid.v20.1.dll

Declaration

[DXCategory("Behavior")]
[DefaultValue(FixedStyle.None)]
[XtraSerializableProperty]
[XtraSerializablePropertyId(3)]
public virtual FixedStyle Fixed { get; set; }
<DXCategory("Behavior")>
<DefaultValue(FixedStyle.None)>
<XtraSerializableProperty>
<XtraSerializablePropertyId(3)>
Public Overridable Property Fixed As FixedStyle

Property Value

Type Default Description
FixedStyle

None

A FixedStyle enumeration member specifying the band behavior when the View is scrolled horizontally.

Remarks

There may be situations when you need to always display a band's content regardless of the scrolling applied to the View. In this case, you need to set the band's GridBand.Fixed property to FixedStyle.Left or FixedStyle.Right. This will anchor the band to the left or right View edge respectively. Such bands are not moved when horizontal scrolling is performed.

The image below shows a banded View with a single band anchored to each View edge.

GridBand_Fixed

Note that the GridBand.Fixed property is unimportant when the columns auto width feature is enabled or when the total column width is less than the View's width. In such cases, the Fixed property value is ignored. Please refer to the Banded Grid Views topic for additional information.

See Also