Back to Devexpress

ColumnView.Images Property

windowsforms-devexpress-dot-xtragrid-dot-views-dot-base-dot-columnview-7c40eddb.md

latest3.3 KB
Original Source

ColumnView.Images Property

Gets or sets a collection of images that can be displayed within column headers and band headers.

Namespace : DevExpress.XtraGrid.Views.Base

Assembly : DevExpress.XtraGrid.v25.2.dll

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

Declaration

csharp
[DefaultValue(null)]
[DXCategory("Appearance")]
public virtual object Images { get; set; }
vb
<DefaultValue(Nothing)>
<DXCategory("Appearance")>
Public Overridable Property Images As Object

Property Value

TypeDefaultDescription
Objectnull

An object that is an image collection providing images for the View’s elements.

|

Remarks

To display images within column or band headers, first assign an image collection to the Images property. Then, use GridColumn.ImageOptions.ImageIndex and GridBand.ImageOptions.ImageIndex properties to associate specific images with columns and bands. These properties refer to images in the image collection by their indexes.

GridColumn.ImageOptions.ImageAlignment and GridBand.ImageOptions.ImageAlignment properties enable the glyph’s alignment within headers to be controlled.

The following screenshot is an example of displaying images within column and band headers.

The Images property accepts the following image collections:

See Also

GridBand.ImageOptions

LayoutViewColumn.ImageIndex

LayoutControlItem.ImageOptions.ImageIndex

Column Header

ColumnView Class

ColumnView Members

DevExpress.XtraGrid.Views.Base Namespace