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 Design
WinForms UI Controls