Home > WinForms UI Controls > User Manual > Data Grid Grouping in C#
Grouping in Data in C# for Grid View
The Data Grid Control provides easy implementation of grouping data in multiple levels in a single table. It is able to group data in different criteria and create a tree of groups to keep the data records. The grouping function can be simply dragged and dropped to the Windows Form project. Furthermore, the Kettic Grid Component fully support customization of grouping, like sum, minimize, maximize, count, first and last as well headers formatting.
How to Group Data in C# for Grid
While using the Kettic Data Grid Control to group data, the grouping options are gathered in a special area, the GroupingGridPanel. When users perform the grouping grid data, the group fields will display in the group panel as elements according to the sort order, such as alphabetic, minimize, and maximize. The Kettic Data Grid Control supports the feature of adding or rearranging the data grouping by dragging and dropping the header of the column to apply data grouping. Users of the Data Grid Control can find more details on end user data grid grouping behavior building.
Properties of Data Grid Grouping
The Kettic Data Grid View Control provides the following Grid View Template properties to control the grid grouping behavior.
Sort Grid Data in C#
When the data grid is grouped, users of the Grid View Control are able to sort grid data additionally by using the grid sorting as default. The sample below demonstrates how to add the GroupDescriptors in C#, and allow the users not to group grid data through drag and drop.
Hide GroupPanel in C#
While using the group data grid function, users can hide the group panel by using a simple C# code snippet as below.
Create Grouping for C# GridView
The following are details that shows how to create grouping for GridView in C# Windows Forms applications, such as setting GridView grouping, create custom grouping for GridView, groups collection, and formatting group header rows.
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
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