wpf-devexpress-dot-xpf-dot-grid-dot-rowalloweventargs.md
Gets or sets whether the operation is allowed.
Namespace : DevExpress.Xpf.Grid
Assembly : DevExpress.Xpf.Grid.v25.2.dll
NuGet Package : DevExpress.Wpf.Grid.Core
public bool Allow { get; set; }
Public Property Allow As Boolean
| Type | Description |
|---|---|
| Boolean |
true to allow the operation; otherwise, false.
|
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Allow property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
if (e.Row != null && grid.GetGroupRowValue(e.RowHandle).Equals(InvoiceStatus.Invalidated))
e.Allow = false;
}
Private Sub OnGroupRowCollapsing(ByVal sender As Object, ByVal e As RowAllowEventArgs)
If e.Row IsNot Nothing AndAlso Me.grid.GetGroupRowValue(e.RowHandle).Equals(InvoiceStatus.Invalidated) Then e.Allow = False
End Sub
See Also