Back to Devexpress

RowAllowEventArgs.Allow Property

windowsforms-devexpress-dot-xtragrid-dot-views-dot-base-dot-rowalloweventargs.md

latest2.6 KB
Original Source

RowAllowEventArgs.Allow Property

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

Declaration

csharp
public bool Allow { get; set; }
vb
Public Property Allow As Boolean

Property Value

TypeDescription
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

csharp
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

vb
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

RowHandle

RowAllowEventArgs Class

RowAllowEventArgs Members

DevExpress.XtraGrid.Views.Base Namespace