Set Grid Data Grouping in C#
The Kettic GridView .NET component provides a GroupDescriptors property for users to set the grid data grouping feature. This property is exposed in KetticGridView C# class for MasterTemplate instance. The grouping descriptor is a collection used to set the grouping criteria and direction to grid data that is bound to GridView C#.NET component, so that users just need perform the delete or clear operation. When we add a new descriptor to the collection, the current view can show the sorted items in groups.
How to Create Data Grouping to GridView
The grouping functionality can be enabled through the SortDescriptor property. We need change the value of the EnableGrouping property of the desired template to True. The simple C# code below demonstrates how to achieve this.
And then, we can create and add new GroupDescriptor to the collection to create grid data grouping to GridView. In the C# code below, we are going to use the GroupName property, which determine the grouping of grid data and the group names for one grouping criteria to grid data.
How to Group Grid Data by Multiple Columns
The Kettic DataGridView component is capable of grouping grid data not only by a single column names, but also multiple column names. The C# code below shows how to group grid data by two column names to GridView.
How to Group Grid Data by Multiple Levels
The Kettic DataGridView component is capable of grouping grid data by multiple levels. The C# code below shows how to group more than one levels
|
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 ControlGridView - Get Started in C#GridView - PropertiesGridView - ColumnGridView - RowGridView - CellsGridView - EditorsGridView - Context MenuGridView - Populating with DataGridView - Hierarchical GridGridView - SelectionGridView - ScrollingGridView - SortingGridView - GroupingSet ProgrammaticallyUsing ExpressionsGroups CollectionFormat Group Header RowGridView - FilteringFiltering RowSet Filters ProgrammaticalllyExcel Like FilteringGridView - Expression EditorDisplayCustomizeLocalizationInsert/ Update/ Delete RecordsData EditInsert / Update / EditGridView - View DefinitionGridView - Exporting DataStyling and AppearanceGridView - LocalizationSave and Load LayoutGridView - Print SupportWinForms 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 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 |