Back to Devexpress

RowFilterEventArgs.Handled Property

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

latest3.1 KB
Original Source

RowFilterEventArgs.Handled Property

Gets or sets whether the event is handled and therefore no default processing is required.

Namespace : DevExpress.XtraGrid.Views.Base

Assembly : DevExpress.XtraGrid.v25.2.dll

NuGet Packages : DevExpress.Win.Grid, DevExpress.Win.Navigation

Declaration

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

Property Value

TypeDescription
Boolean

true if the default actions are not required; otherwise, false.

|

Remarks

Set this parameter to true to indicate that no default processing is required. In this instance, the row’s visibility will be determined by the RowFilterEventArgs.Visible property, and the row will be visible or hidden in a View regardless of the View’s filter.

If this parameter is set to false the value of the RowFilterEventArgs.Visible property is ignored. The row will be visible in the View if it matches the View’s criteria, otherwise, the row will be hidden.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Handled 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-toggle-row-visibility/CS/WindowsApplication1/RowVisibilityHelper.cs#L57

csharp
e.Visible = false;
    e.Handled = true;
}

winforms-grid-toggle-row-visibility/VB/WindowsApplication1/RowVisibilityHelper.vb#L59

vb
e.Visible = False
    e.Handled = True
End If

See Also

Visible

RowFilterEventArgs Class

RowFilterEventArgs Members

DevExpress.XtraGrid.Views.Base Namespace