TileView.CustomItemTemplate Event

Allows you to assign custom item templates to tiles.

Namespace: DevExpress.XtraGrid.Views.Tile

Assembly: DevExpress.XtraGrid.v20.1.dll

Declaration

[DXCategory("Data")]
public event TileViewCustomItemTemplateEventHandler CustomItemTemplate
<DXCategory("Data")>
Public Event CustomItemTemplate As TileViewCustomItemTemplateEventHandler

Event Data

The CustomItemTemplate event's data class is DevExpress.XtraGrid.Views.Tile.TileViewCustomItemTemplateEventArgs.

Remarks

By default, all tiles are generated from the default template specified by the TileView.TileTemplate property. The CustomItemTemplate event allows you to dynamically provide templates for tiles, thus overriding the default template. You can create tile templates beforehand using the Data Grid Designer's Tile Template page (these templates will be stored in the TileView.Templates collection. While handling the CustomItemTemplate event, read a corresponding template from the TileView.Templates collection and assign it to the event's Template parameter.

See Also