Skip to main content

GridControl.CustomRowFilter Event

Allows you to use custom rules to filter data rows.

Namespace: DevExpress.WinUI.Grid

Assembly: DevExpress.WinUI.Grid.v23.2.dll

NuGet Package: DevExpress.WinUI

Declaration

public event RowFilterEventHandler CustomRowFilter

Event Data

The CustomRowFilter event's data class is RowFilterEventArgs. The following properties provide information specific to this event:

Property Description
DefaultVisibility Gets the row’s visibility calculated by the GridControl.
ListSourceRowIndex Gets the row’s index in a data source.
Source Gets a control that raised the event.
Visible Gets or sets whether to display the processed row.

Remarks

Use the CustomRowFilter event to apply a custom filter condition. The custom filter takes priority over the filter criteria applied in a column’s Drop-down Filter or the Automatic Filter Row.

To apply a custom filter condition, handle the CustomRowFilter event. The GridControl raises this event for each record in a data source. The ListSourceRowIndex property returns the row’s data source index. The DefaultVisibility property returns the row’s visibility state based on the applied filter.

To hide or show a row, specify the Visible property.

See Also