C# ListView Filtering Feature
Kettic ListView WinForms Control is capable of filtering in ListView control for C# Windows Forms applications. Furthermore, the filtering can be performed in all views in ListView control. The filtering mechanism for ListView makes it easy to use the component for Windows Forms project being deployed on other C#.NET applications. It is really easy to perform the filtering operations on the fly when the users exposed event for filtering items.
How to Enable Filtering for ListView in C#
To enable the filtering functionality for ListView component, we need to use the EnableFiltering property of the Kettic ListView control. The following is the simple C# code snippet to accomplish this.
C# code for enabling filtering to ListView control
How to Filter by Value in ListView using C#.NET
The filtering feature allows the users to filter items either by value or by type. When we enable the items filtering functionality, we must create a new FilterDescriptor and assign values to the properties including PropertyName, FilterOperator and SearchCriteria. The C# code below demonstrates that how to perform items filtering by value.
C# code for filtering items by value in ListView control
How to Filter by Type in ListView using C#.NET
Kettic ListView is capable of filtering by type of the items. This is accomplished by specifying the column name in list view via the PropertyName property of the filter descriptor. The following is the C# code that shows how to filter items by types.
C# code for filtering items by types in ListView control
| ![]() 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 ControlWinForms ListView UI ControlGet Started in C#ListView - View TypesListView - Design TimeAdd ColumnsAdd GroupsAdd ItemsListView - FeaturesItem Selection & SizingFilteringGroupingSortingListView - Data BindingPopulating with DataCheckbox & EditorCustom ItemsWinForms 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 |