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

Custom Grouping of PropertyGrid in C#.NET

KetticPropertyGrid .NET component is capable of applying custom grouping functionality to the property grid in your applications. The custom grouping functionality can be easily applied to your Windows Forms application via enabling the properties, KetticPropertyGrid.EnableGrouping or PropertyGridElement.EnableGrouping. However, the default setting enables the grouping functionality for KetticPropertyGrid.

Apply Custom Grouping to KetticPropertyGrid

This KetticPropertyGrid control provides flexible grouping capability and allows the users create groups according to custom grouping strings. The custom grouping is prior to the GroupDescriptors. To enable the custom grouping functionality, we should enable the properties, KetticPropertyGrid.EnableGrouping or PropertyGridElement.EnableGrouping. And there is a FormatItem event included in the KetticPropertyGrid component used to format the group text in the created custom groups.

Handling CustomGrouping Event in C#.NET

When we enable the custom grouping functionality, the CustomGrouping event will be fired. The default setting disables the custom grouping but enable the grouping functionality. The following are the properties that can be applied to the CustomGrouping event.
  • PropertyGridTable, this property is used to keep the items that will be grouped in a table
  • Item, this property is used to define the item that will be grouped
  • GroupKey, this property is an group identifier
  • Handled, this property is used to apply either the custom algorithm or group descriptors to the item that will be processed.

C# code for Handling CustomGrouping Event

The C# code below shows the approaches to handle the CustomGrouping event and group the KetticPropertyGrid items through custom logic.
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