Log In
Home
Support
Demos
Documentation
Blogs
Training
Webinars
[Expand]General Information
[Collapse]WinForms Controls
  Prerequisites
 [Expand]What's Installed
 [Expand]Build an Application
 [Collapse]Controls and Libraries
  [Expand]Forms and User Controls
  [Expand]Messages, Notifications and Dialogs
  [Expand]Editors and Simple Controls
  [Expand]Ribbon, Bars and Menu
  [Expand]Application UI Manager
  [Expand]Docking Library
  [Collapse]Data Grid
   [Expand]Getting Started
   [Expand]Data Binding
   [Expand]Views
   [Expand]Data Editing and Validation
   [Expand]Grouping
   [Expand]Sorting
   [Expand]Filter and Search
   [Expand]Summaries
   [Expand]Focus and Selection Handling
    Formatting Cell Values
   [Expand]Master-Detail Relationships
   [Expand]Asynchronous Image Load
   [Expand]Export and Printing
   [Expand]Appearance and Conditional Formatting
    Split Presentation
    Row Preview Sections
    Scrolling
   [Expand]Batch Modifications
   [Expand]Hit Information
    Hints
   [Expand]Popup Menus
   [Expand]Saving and Restoring Layouts
   [Collapse]Visual Elements
    [Expand]Grid Control Elements
    [Expand]View Common Elements
    [Collapse]Grid View Elements
      Auto Filter Row
      Column
      Column Header
      Column Header Context Menu
      Column Header Image
      Column Header Panel
      Customization Form
      Data Row
      Empty Space
      Filter Button
      Fixed Panel Divider
      Footer Cell
      Footer Context Menu
      Group Expand Button
      Group Footer
      Group Panel
      Group Panel Context Menu
      Group Row
      Group Row Check Box Selector
      Header Panel Button
      Preview Section
      Row Cell
      Row Indicator Panel
      Row Separator
      Sort Glyph
      View Footer
    [Expand]Card View Elements
    [Expand]Layout View Elements
    [Expand]Banded Grid View Elements
    [Expand]Master-Detail Mode Related Elements
   [Expand]Design-Time Features
   [Expand]Examples
   [Expand]End-User Capabilities
    Included Components
  [Expand]Vertical Grid
  [Expand]Pivot Grid
  [Expand]Tree List
  [Expand]Chart Control
  [Expand]Diagrams
  [Expand]Gauges
  [Expand]Map Control
  [Expand]Scheduler
  [Expand]Spreadsheet
  [Expand]Rich Text Editor
  [Expand]Spell Checker
  [Expand]Form Layout Managers
  [Expand]Navigation Controls
  [Expand]Printing-Exporting
  [Expand]PDF Viewer
   Reporting
  [Expand]Snap
  [Expand]TreeMap Control
 [Expand]Common Features
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Document Server
[Expand]Reporting
[Expand]Report Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]CodeRush
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

Group Row

Group rows are used to organize data rows into a tree when data grouping is applied. A group row contains a group expand button that enables end-users to expand and collapse a group row, and thus show or hide its child rows. Group rows can also display group summary values.

 

 

The table below lists the main properties that affect element appearance.

Appearance The GridViewAppearances.GroupRow property. The GridView.RowStyle event.

To specify different styles for group rows displayed at different nesting levels, handle the GridView.GroupLevelStyle event.

When the View has focus, and a group row (as well as a data row) is focused or selected, the row's appearance is determined by either the GridViewAppearances.FocusedRow or GridViewAppearances.SelectedRow property, respectively. When the View loses focus, the focused and selected rows are painted using the GridViewAppearances.HideSelectionRow property's settings.

Paint Style GridOptionsView.GroupDrawMode
Custom Draw Event GridView.CustomDrawGroupRow
Hide group rows if they contain only a single data row GridOptionsBehavior.AllowPartialGroups
Align group summaries in group rows GridOptionsBehavior.AlignGroupSummaryInGroupRow
Anchor the top visible group row to the top of the grid GridOptionsBehavior.AllowFixedGroups
Contents GridColumn.GroupInterval
GridView.GroupFormat
GridView.GetGroupRowValue
GridView.GetGroupRowDisplayText

Custom text can be displayed in group rows via the GridView.CustomDrawGroupRow event. HTML tags can be used to format text in group rows, provided that the GridOptionsView.AllowHtmlDrawGroups option is enabled.

Expanded See Also

How would you rate this topic?​​​​​​​