TreeListView.EditFormShowing Event
Occurs when the TreeListView is about to display the edit form.
Namespace: DevExpress.Xpf.Grid
Assembly: DevExpress.Xpf.Grid.v20.1.dll
NuGet Packages: DevExpress.WindowsDesktop.Wpf.Grid.Core, DevExpress.Wpf.Grid.Core
Declaration
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 TreeListView from displaying the edit form. The following example demonstrates how to disable the edit form for odd rows.
private void TreeListView_EditFormShowing(object sender, DevExpress.Xpf.Grid.EditFormShowingEventArgs e) {
if(e.RowHandle % 2 != 0) {
e.Allow = false;
}
}
See Also