Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

GridBand.ImageAlignment Property

Use the Alignment option accessible in GridBand.ImageOptions to specify band header image alignment.

Namespace: DevExpress.XtraGrid.Views.BandedGrid

Assembly: DevExpress.XtraGrid.v24.2.dll

NuGet Packages: DevExpress.Win.Grid, DevExpress.Win.Navigation

#Declaration

[Browsable(false)]
[DefaultValue(StringAlignment.Near)]
[DXCategory("Appearance")]
[EditorBrowsable(EditorBrowsableState.Never)]
[XtraSerializableProperty]
public StringAlignment ImageAlignment { get; set; }

#Property Value

Type Default Description
StringAlignment Near

A System.Drawing.StringAlignment enumeration member specifying the image alignment.

#Remarks

An image displayed within the band header can be aligned horizontally only. All available alignment options are listed in the table below.

Member Name

Description

Center

Centers the image within the band header.

GridBand_ImageAlignment_Center

Far

Places the image to the right.

GridBand_ImageAlignment_Far

Near

Places the image to the left.

GridBand_ImageAlignment_Near

Note: the band header’s caption text is not displayed when the ImageAlignment property is set to StringAlignment.Center.

See Also