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.
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 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 ControlWinForms Menu UI ControlWinForms ComboBox UI ControlWinForms PageView UI ControlPanels and Labels UI ControlWinForms Panorama UI ControlWinForms PDFViewer UI ControlWinForms Property Grid UI ControlGet Started in C#Property Grid - AttributeAdd Custom PropertiesBinding to Multiple ObjectsProperty Grid - CustomizationProperty Grid - LocalizationProperty Grid - EditorsC# API & EventsValidationCustomizing Editor BehaviorHandle EventsProperty Grid - FeaturesFeatures - filteringFeatures - GroupingCustom GroupingFeatures - SortingFeatures - Help BarFeatures - Tool BarWinForms 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 |