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

GridColumn.ImageAlignment Property

Use the Alignment setting of the GridColumn.ImageOptions property to get or set column header image alignment.

Namespace: DevExpress.XtraGrid.Columns

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 virtual StringAlignment ImageAlignment { get; set; }

#Property Value

Type Default Description
StringAlignment Near

A System.Drawing.StringAlignment enumeration member that specifies the image alignment.

#Remarks

The ImageAlignment property provides the following image alignment options:

Member Name

Description

Center

The image is centered. The header text is not displayed in this case.

GridBand_ImageAlignment_Center

Far

The image is right-aligned.

GridBand_ImageAlignment_Far

Near

The image is left-aligned.

GridBand_ImageAlignment_Near

Note: Use the GridColumn.ImageOptions.ImageIndex property to specify the image displayed within the column header.

See Also