windowsforms-devexpress-dot-xtragrid-dot-views-dot-base-dot-rowalloweventargs.md
Gets or sets a value specifying whether the current operation is allowed.
Namespace : DevExpress.XtraGrid.Views.Base
Assembly : DevExpress.XtraGrid.v25.2.dll
NuGet Packages : DevExpress.Win.Grid, DevExpress.Win.Navigation
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.
winforms-grid-keep-groups-expanded/CS/KeepGroupsExpanded/Form1.cs#L35
private void gridView1_GroupRowCollapsing(object sender, DevExpress.XtraGrid.Views.Base.RowAllowEventArgs e) {
e.Allow = false;
}
winforms-grid-keep-groups-expanded/VB/KeepGroupsExpanded/Form1.vb#L37
Private Sub gridView1_GroupRowCollapsing(ByVal sender As Object, ByVal e As DevExpress.XtraGrid.Views.Base.RowAllowEventArgs) Handles gridView1.GroupRowCollapsing
e.Allow = False
End Sub
See Also