A newer version of this page is available. Switch to the current version.

TileViewColumns.BackgroundImageColumn Property

Gets or sets the column that contains images to display in tiles' background.

Namespace: DevExpress.XtraGrid.Columns

Assembly: DevExpress.XtraGrid.v19.2.dll

Declaration

[DefaultValue(null)]
public GridColumn BackgroundImageColumn { get; set; }

Property Value

Type Default Description
GridColumn

null

A GridColumn object representing the column that contains images to display in tiles' background.

Remarks

If you want to set images from a specific grid column as tile background images, you can either create an element that corresponds to this column and set appropriate values for this element's TileItemElement.ImageScaleMode and TileItemElement.ImageAlignment properties, or assign this column to the BackgroundImageColumn property. The advantage of the second approach is that images set as tile background images can stretch over the entire tile, ignoring its padding. To do the same with elements, explicitly set tile paddings to 0, 0, 0, 0.

To arrange background images or modify their scale mode, use the TileViewItemOptions.ItemBackgroundImageAlignment or TileViewItemOptions.ItemBackgroundImageScaleMode properties respectively.

See Also