Summary Grid Rows of C# DataGridView
The summary grid rows of DataGridView C#.NET Component allow users to display information of the data containing in the GridView like first item, last item, count of items, and more for Windows Forms applications. The DataGridView control will pin the summary grid rows to top and bottom to the grid view in the C# Windows Forms application. The summary grid rows are mainly used in a flat DataGridView or in groups and hierarchical views for C# Windows Forms application.
How to Create Summary Rows in C#
The DataGridView control will pin the summary grid rows to top and bottom to the grid view in the C# Windows Forms application. The following is a basic example that shows how to create a summary pinned to top of the GirdView and display the count of the Kettic DataGridView rows.
Porperties of SummaryItem
The DataGridView control offers the Summary item to customize the summary item. And the major properties of the DataGridView control include as below:
How to Use the FormatString in C#
The C# code sample below shows how to add several summary items in a summary gird row and how to use the FormatString to DataGridView.
How to Use AggregateExpression in C#
The C# code sample below shows how to use AggregateExpression to calculate an average value excluding the Max and Min value to DataGridView.
Grouped GridView Summary Rows
The Summary grid rows is able to calculate each group child rows and display them to top or bottom in each group GridView when you use grouping. The GridView component offers the DisplayTotals property to determine whether displaying the total summary rows or not. The summary rows will calculate all the child rows of the groups and pin them to top and bottom to the grouped GridView. The C# code sample below shows how to use summary rows in grouped GridView.
Hierarchical GridView Summary Rows
The Kettic GridView control allows users to add summary gird rows in hierarchical views. And the summary grid rows will be calculated for the child grid rows in the current view. The C# code sample below shows how to add a summary row to the first level of Kettic GridView hierarchy.
| ![]() 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 - RowRow - IterateRow - InsertRow - RemoveRow - Rows & Child RowsRow - Format RowsRow - Pinned RowsRow - Select RowsRow - Conditional Format RowsRow - Selection RectangleRow - Summary RowsRow - Painting RowsGridView - CellsGridView - EditorsGridView - Context MenuGridView - Populating with DataGridView - Hierarchical GridGridView - SelectionGridView - ScrollingGridView - SortingGridView - GroupingGridView - FilteringGridView - Expression EditorInsert/ Update/ Delete RecordsGridView - 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 |