Skip to main content
A newer version of this page is available. .

TableView.EditFormShowing Event

Occurs when the TableView is about to display the edit form.

Namespace: DevExpress.Xpf.Grid

Assembly: DevExpress.Xpf.Grid.v20.2.dll

NuGet Packages: DevExpress.WindowsDesktop.Wpf.Grid.Core, DevExpress.Wpf.Grid.Core

Declaration

public event EventHandler<EditFormShowingEventArgs> EditFormShowing

Event Data

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

Property Description
Allow Gets or sets a value that indicates whether to show the edit form.
RowHandle Gets the handle of the row that raised the event.

Remarks

The EditFormShowing event allows you to prevent the TableView from displaying the edit form. The following example demonstrates how to disable the edit form for odd rows.

private void TableView_EditFormShowing(object sender, DevExpress.Xpf.Grid.EditFormShowingEventArgs e) {
    if(e.RowHandle % 2 != 0) {
        e.Allow = false;
    }
}
See Also