Skip to main content

GridColumn.ImageIndex Property

Use the ImageIndex setting of the GridColumn.ImageOptions property to assign a column header image by its index in an image collection.

Namespace: DevExpress.XtraGrid.Columns

Assembly: DevExpress.XtraGrid.v24.2.dll

Declaration

[Browsable(false)]
[DefaultValue(-1)]
[DXCategory("Appearance")]
[EditorBrowsable(EditorBrowsableState.Never)]
[ImageList("Images")]
[XtraSerializableProperty]
public virtual int ImageIndex { get; set; }

Property Value

Type Default Description
Int32 -1

An integer value that specifies the image by its zero-based index within the source collection; -1 displays no image.

Remarks

The ImageIndex property specifies the index of the required image in the collection of images. The source of images is specified by the ColumnView.Images property.

It is also possible to assign an image to a column header directly using the GridColumn.Image property.

The image below shows examples of band header and column header images.

ColumnHeader_Images

See Also