Groups Collection of C#.NET Component
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 Access Groups Collection in C#
When we create a grid group, the group is immediately added to the Groups collection to the C# GridView template project. To access the grid group collection, we can use the simple C# code snippet below
How to Expand and Collapse Groups Collection in C#
The Kettic GridView allows the users to expand and collapse grid groups in C#.NET. The following are the C# code that allows you to expand and collapse the grid group in the Groups collection.
C# code to expand groups in Groups collection
C# code to collapse groups in Groups collection
How to Apply Group in C#
The Kettic GridView WinForms control provides the ApplyGroup property for the users to indicate if the grid column can be group or not. The GridView left the default setting as true. The C# code below shows how to disable the application.
How to Group Hierarchical Data
The DataGroup C# Class support hierarchical data structure. With this feature, we can create a single or multiple group levels. The properties of the DataGroup allow the users to easily access to the Level, Parent and Child grid groups.
C# code used to access parent and child grid groups in Windows Forms template
Additionally, there is a GroupRow property included in the DataGroup collection for accessing the header row of a group in a specific data group. The following are the C# code used to access to group header row
|
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 |