Back to Devexpress

DataControlBase.FilterChanged Event

wpf-devexpress-dot-xpf-dot-grid-dot-datacontrolbase-3efb1e9c.md

latest6.1 KB
Original Source

DataControlBase.FilterChanged Event

Occurs after the grid’s filter has been changed.

Namespace : DevExpress.Xpf.Grid

Assembly : DevExpress.Xpf.Grid.v25.2.Core.dll

NuGet Package : DevExpress.Wpf.Grid.Core

Declaration

csharp
public event RoutedEventHandler FilterChanged
vb
Public Event FilterChanged As RoutedEventHandler

Event Data

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

PropertyDescription
HandledGets or sets a value that indicates the present state of the event handling for a routed event as it travels the route.
OriginalSourceGets the original reporting source as determined by pure hit testing, before any possible Source adjustment by a parent class.
RoutedEventGets or sets the RoutedEvent associated with this RoutedEventArgs instance.
SourceGets or sets a reference to the object that raised the event.

The event data class exposes the following methods:

MethodDescription
InvokeEventHandler(Delegate, Object)When overridden in a derived class, provides a way to invoke event handlers in a type-specific way, which can increase efficiency over the base implementation.
OnSetSource(Object)When overridden in a derived class, provides a notification callback entry point whenever the value of the Source property of an instance changes.

Remarks

The FilterChanged event is fired in the cases listed below:

The following code snippets (auto-collected from DevExpress Examples) contain references to the FilterChanged event.

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.

wpf-data-grid-create-event-raised-on-layout-changes/CS/E4609/Implementation/GridLayoutHelper.cs#L25

csharp
Grid.SortInfo.CollectionChanged += OnSortInfoChanged;
    Grid.FilterChanged += OnGridFilterChanged;
}

how-to-create-search-window-with-find-previous-and-find-next-buttons-in-gridcontrol-t127527/CS/DevExpress.Example01/SearchBehavior/SearchWindow.xaml.cs#L38

csharp
this.IsVisibleChanged += ThisIsVisibleChanged;
this._Grid.FilterChanged += GridFilterChanged;
ThemeManager.ThemeChanged += ThemeChanged;

wpf-data-grid-create-event-raised-on-layout-changes/VB/E4609/Implementation/GridLayoutHelper.vb#L27

vb
AddHandler Grid.SortInfo.CollectionChanged, AddressOf OnSortInfoChanged
    AddHandler Grid.FilterChanged, AddressOf OnGridFilterChanged
End Sub

how-to-create-search-window-with-find-previous-and-find-next-buttons-in-gridcontrol-t127527/VB/DevExpress.Example01/SearchBehavior/SearchWindow.xaml.vb#L40

vb
AddHandler IsVisibleChanged, AddressOf ThisIsVisibleChanged
AddHandler _Grid.FilterChanged, AddressOf GridFilterChanged
AddHandler ThemeManager.ThemeChanged, AddressOf ThemeChanged

See Also

DataControlBase Class

DataControlBase Members

DevExpress.Xpf.Grid Namespace