C# for Grid Filtering in Windows Forms
The data filtering function support is built in the Data Grid Control. It allows users process data filtering in any columns. When users click in the filter cell, the cell editor will be open and will allow users set the filter condition. When clicking the filtering icon in the filter cell, a menu will be open and provide filter conditions including greater than, contains, less than, equals to, and more. Developers can also customize the filtering features in C# code in Windows Forms projects.
How to Use GridView FilterDescriptors
The Kettic GridView .NET Component provides the FilterDescriptors property to hold filters descriptors for filtering grid data. This FilterDescriptors property is included in the GridViewTemplate of the C# Class for MasterTemplate instance. The significant C# class includes:
The following is the C# code that demonstrates how to use the filer descriptor for .NET Windows Forms applications.
Properties of the FilterDescriptor for GridView
The FilterDescriptor C# class has various properties for the users to perform the grid data filtering operation.
How to Create a Filter Descriptor in C#
The Kettic GridView offers FilterDescriptor property to each grid data column to assign a FilterDescriptor object. When a new descriptor is added to the collection, the grid data will be filtered automatically based on it. The following C# code shows how to assign a filtering descriptor object.
How to Create Multiple Filters in C#
To set a variety of filters to GridView in C#.NET projects, we can use the C# code as following. |
UI Controlsfor Windows Forms .NET WinForms UI Overview.NET WinForms UI Features.NET WinForms UI GuideC# WinForms UI DesignVB.NET WinForms UI DesignWinForms UI Controls WinForms Buttons UI Control WinForms Calendar UI ControlWinForms Carousel UI ControlWinForms Chart UI ControlWinForms Clock UI ControlCommandBar UI ControlWinForms Dock UI ControlDesktop Alert UI ControlDropDown List UI ControlWinForms Editor UI ControlForms and Dialogs UI ControlWinForms GridView UI ControlGridView - Get Started in C#GridView - PropertiesGridView - ColumnGridView - RowGridView - CellsGridView - EditorsGridView - Context MenuGridView - Populating with DataGridView - Hierarchical GridGridView - SelectionGridView - ScrollingGridView - SortingGridView - GroupingSet ProgrammaticallyUsing ExpressionsGroups CollectionFormat Group Header RowGridView - FilteringFiltering RowSet Filters ProgrammaticalllyExcel Like FilteringGridView - Expression EditorDisplayCustomizeLocalizationInsert/ Update/ Delete RecordsData EditInsert / Update / EditGridView - View DefinitionGridView - Exporting DataStyling and AppearanceGridView - LocalizationSave and Load LayoutGridView - Print SupportWinForms ListView UI ControlWinForms Menu UI ControlWinForms ComboBox UI ControlWinForms PageView UI ControlPanels and Labels UI ControlWinForms Panorama UI ControlWinForms PDFViewer UI ControlWinForms Property Grid UI ControlWinForms Ribbon UI ControlWinForms PivotGrid UI ControlWinForms RichTextBox UI ControlWinForms Rotator UI ControlWinForms Scheduler UI ControlWinForms Shortcuts UI ControlWinForms SpellChecker UI ControlWinForms Track & Status UI ControlWinForms TreeView UI ControlWinForms Wizard UI ControlWinForms Test UI ControlWinForms Theme UI Control |