Files to look at:
- FilterWindow.xaml (VB: FilterWindow.xaml)
- FilterWindow.xaml.cs (VB: FilterWindow.xaml.vb)
- MainWindow.xaml (VB: MainWindow.xaml)
- MainWindow.xaml.cs (VB: MainWindow.xaml.vb)
- ViewModel.cs (VB: ViewModel.vb)
GridControl - How to customize the Filter Editor dialog
You can invoke the Filter Editor dialog by clicking a column header and choosing the Filter Editor item. In some scenarios, it is useful to add additional buttons to this dialog, i.e. customize it.
This example illustrates how to add the additional "CustomAction" button to this dialog. For this, it is necessary to handle the DataViewBase.FilterEditorCreated event. Set the e.Handled property to true and show your own Filter Editor dialog in this event handler.
Note: The GridControl uses the new Filter Editor starting from v19.1. To enable the previous Filter Editor, set the DataViewBase.UseLegacyFilterEditor property to true.
Refer to the Filter Editor article for information on how to customize the new Filter Editor.