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

TileView.ItemCustomize Event

Allows you to customize individual tiles.

Namespace: DevExpress.XtraGrid.Views.Tile

Assembly: DevExpress.XtraGrid.v19.2.dll

Declaration

[DXCategory("Data")]
public event TileViewItemCustomizeEventHandler ItemCustomize

Event Data

The ItemCustomize event's data class is TileViewItemCustomizeEventArgs. The following properties provide information specific to this event:

Property Description
Item Gets the currently processed tile.
RowHandle Gets the row handle of the currently processed tile.

Remarks

By default, all tiles are generated from the default tile template (TileView.TileTemplate). If you need to customize the contents of individual tiles, handle the ItemCustomize event.

using DevExpress.XtraEditors;

private void tileView1_ItemCustomize(object sender, DevExpress.XtraGrid.Views.Tile.TileViewItemCustomizeEventArgs e) {
    if (e.RowHandle == 0)
        e.Item.ItemSize = TileItemSize.Large;
}

Instead of customizing the contents of tiles, you can supply custom templates for them by handling the TileView.CustomItemTemplate event.

See the Customizing Individual Tiles section of the Tile View topic to learn more.

See Also