Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TileView.ItemClick Event

Occurs when a user clicks a tile, or presses the Space or Enter keyboard keys.

Namespace: DevExpress.XtraGrid.Views.Tile

Assembly: DevExpress.XtraGrid.v24.2.dll

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

#Declaration

[DXCategory("Action")]
public event TileViewItemClickEventHandler ItemClick

#Event Data

The ItemClick event's data class is DevExpress.XtraGrid.Views.Tile.TileViewItemClickEventArgs.

#Remarks

The ItemClick event fires when a user presses and then releases a tile. The event is also raised when the Space or Enter keyboard keys are pressed.

If your users use touch screens, and you want to handle the ItemClick event to display a modal window when a user taps on a touch screen, wrap your code that displays the modal window within the Control.BeginInvoke method. For example, you can use the following code:

private void tileView1_ItemClick(object sender, DevExpress.XtraGrid.Views.Tile.TileViewItemClickEventArgs e) {
    this.BeginInvoke(new MethodInvoker(delegate {
        (new Form2()).ShowDialog();
    }));
}
See Also