$99 VS $1000+. UI Control for ASP.NET AJAX(contains chart and gridview).
PropertyGrid WinForms Control
Easily process properties of data objects, automatically generate and display custom data in C#.
Home > WinForms UI Controls > User Manual > Filtering Property Grid in C#

PropertyGrid Filtering in C#.NET

KetticPropertyGrid WinForms control contains various features for data processing, including grouping, sorting, as well as filtering. The filtering functionality can be easily added to your Windows Forms application by using the PropertyGrid control. To add the filtering, we can use the text box of the toolbar or populate the FilterDescriptors collection of KetticPropertyGrid using C# code.

Add Filtering to PropertyGrid in C#.NET

KetticPropertyGrid WinForms control allows the users to add filtering functionality either via text box of the toolbar or populating the FilterDescriptors collection of KetticPropertyGrid using C# code. To filtering in text box using toolbar, we must enable the toolbar by changing the ToolBarxVisible to true, type a string into the text box, and then perform searching.

C# code for Adding Filtering to PropertyGrid

To add filtering to PropertyGrid control using C# code, we must enable the EnableFiltering property by changing its value to true, and then define the desired FilterDescriptor and add it to the control FilterDescriptors collection. The following are the standards for filtering in PropertyGrid.
  • Name, the property allows the users to filter through property name in PropertyGrid
  • Category, the property is assigned from the Category attribute name in PropertyGrid
  • FormattedValue, this property is used to convert the property value to string in PropertyGrid
  • Value, the property allows the users to filter through property value in PropertyGrid
  • Label, it allows the users to change the filtering criteria by setting the Label property of the item
  • Description, the property can be controlled by the property Description attribute
  • OriginalValue, this property determines the value used while initializing the property

C# code for Adding a Filter Descriptor


FilterDescriptor filter = new FilterDescriptor("Name", FilterOperator.Contains, "size");
ketticPropertyGrid1.FilterDescriptors.Add(filter);
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