Skip to main content

TileView.ShowEditForm() Method

Opens an Edit Form for the focused tile. This method is in effect when the TileViewOptionsBehavior.EditingMode property is set to EditForm.

Namespace: DevExpress.XtraGrid.Views.Tile

Assembly: DevExpress.XtraGrid.v25.1.dll

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

Declaration

public virtual void ShowEditForm()

Remarks

The ShowEditForm method opens an Edit Form for the focused tile if the TileViewOptionsBehavior.EditingMode property is set to EditForm.

Before the Edit Form is displayed, TileView.EditFormShowing and TileView.EditFormPrepared events fire.

To close the Edit Form and discard changes, call the TileView.HideEditForm method.

The following code snippet displays an Edit Form on a button click:

using DevExpress.XtraGrid.Views.Tile;

tileView1.OptionsBehavior.EditingMode = TileViewEditingMode.EditForm;
// ...
void editButton_Click(object sender, EventArgs e) {
    tileView1.ShowEditForm();
}
See Also