[Expand]General Information
[Expand]WinForms Controls
[Collapse]ASP.NET Controls and MVC Extensions
 [Expand]What's Installed
 [Expand]Common Concepts
 [Collapse]ASP.NET WebForms Controls
   Getting Started
  [Collapse]Grid View
   [Expand]Product Information
    Getting Started
    [Expand]Binding to Data
    [Expand]Data Representation Basics
    [Expand]Focus and Navigation
    [Expand]Data Editing
    [Collapse]Data Shaping and Manipulation
     [Expand]Data Summaries
       Grouping Overview
       Grouping in Code
       Grouping Modes and Custom Grouping
       Expanding and Collapsing Group Rows
      Cell Merging
    [Expand]Data Formatting
    [Expand]Master-Detail Relationship
     Appearance Customization
     Save and Restore Layout
    ASPxGridView Designer
   [Expand]Visual Elements
   [Expand]Member Tables
   [Expand]ASPxGridView - Animated Images
  [Expand]Tree List
  [Expand]Card View
  [Expand]Chart Control
  [Expand]Pivot Grid
  [Expand]Rich Text Editor
  [Expand]Site Navigation and Layout
  [Expand]HTML Editor
  [Expand]Vertical Grid
  [Expand]Data Editors
  [Expand]Docking and Popups
  [Expand]File Management
  [Expand]Data and Image Navigation
  [Expand]Multi-Use Site Controls
  [Expand]Spell Checker
  [Expand]Query Builder
 [Expand]ASP.NET MVC Extensions
 [Expand]Redistribution and Deployment
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Report and Dashboard Server
[Expand]eXpressApp Framework
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

Expanding and Collapsing Group Rows

End-users can expand or collapse group rows by clicking group buttons.

To identify whether a group row is expanded, use the ASPxGridView.IsRowExpanded method.

Expanded Expanding Group Rows

You can use the ASPxGridViewBehaviorSettings.AutoExpandAllGroups to control whether all group rows displayed within ASPxGridView are automatically expanded after each grouping operation. This makes all data rows visible within the grid after a group operation.

To expand a group row in code, use the ASPxGridView.ExpandRow server method, or the ASPxClientGridView.ExpandRow client method. To expand all group rows, use the ASPxGridView.ExpandAll server method, or the ASPxClientGridView.ExpandAll client method.

Before expanding a group row, the client ASPxGridView raises the ASPxClientGridView.RowExpanding event, allowing you to prevent the group row from being expanded.

Expanded Collapsing Group Rows

Use the ASPxGridView.CollapseRow server method or the ASPxClientGridView.CollapseRow client row to collapse a group row. To collapse all expanded group rows, use the ASPxGridView.CollapseAll server method, or the ASPxClientGridView.CollapseAll client method.

Before a group row is collapsed, the client ASPxGridView raises the ASPxClientGridView.RowCollapsing event, allowing you to prevent the group row from being collapsed.

Is this topic helpful?​​​​​​​