Add Groups to ListView in C# at Design Time
The ListView Controls for Windows Forms provide design-time support functionality to developers. This feature allows developers easily choose a data source or populate it with unbound items, groups and columns when design the user interface for their Windows Form applications. The users can easily add columns to ListView, group items in ListView, and add items to ListView at design time in C#.NET templates
How to Group Items in ListView at Design Time
The Kettic ListView control provides enhanced grouping functionality for the users. It helps the users to group data items into different groups conveniently and offers excellent end-user experience. Moreover, the ListView control is capable of grouping items at design time. To accomplish the ListView items grouping, we need to enable the properties of the ListView control, EnableCustomGroups and DisplayGroups, and then add the desired groups into the Groups collection of Kettic ListView Control. The following steps shows how to add groups to ListView control
Customize ListView Grouping in C#.NET
The following is a sample that demonstrates how to customize the grouping functionality in C# code. To accomplish this, we need to subscribe to the ChangedSelectedIndex event of commandBarDropDownGroup and add the desired GroupDescriptors from the selected item in the drop down. The C# code shows how to handle the group functionality event
| ![]() 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 |