Log In
Home
Support
Demos
Documentation
Blogs
Training
Webinars
[Expand]General Information
[Expand]WinForms Controls
[Collapse]ASP.NET Controls and MVC Extensions
 [Expand]Prerequisites
 [Expand]What's Installed
 [Expand]Common Concepts
 [Collapse]ASP.NET WebForms Controls
  [Expand]Reporting
  [Expand]Chart Control
  [Collapse]Grid View
   [Expand]Product Information
    Getting Started
   [Expand]Fundamentals
   [Collapse]Concepts
    [Expand]Binding to Data
    [Expand]Data Representation Basics
    [Expand]Focus and Navigation
    [Expand]Data Editing
    [Collapse]Data Shaping and Manipulation
     [Expand]Data Summaries
     [Expand]Filtering
     [Collapse]Grouping
       Grouping Overview
       Grouping in Code
       Grouping Modes and Custom Grouping
       Expanding and Collapsing Group Rows
     [Expand]Sorting
      Cell Merging
    [Expand]Data Formatting
    [Expand]Master-Detail Relationship
     Appearance Customization
     Adaptivity
     Save and Restore Layout
    [Expand]Templates
     Export
     Toolbars
    [Expand]ASPxGridLookup
    ASPxGridView Designer
   [Expand]Visual Elements
   [Expand]Examples
   [Expand]Member Tables
   [Expand]ASPxGridView - Animated Images
  [Expand]Card View
  [Expand]Vertical Grid
  [Expand]Spreadsheet
  [Expand]Rich Text Editor
  [Expand]Image and Data Browsing
  [Expand]Docking and Popups
  [Expand]Site Navigation and Layout
  [Expand]File Management
  [Expand]Multi-Use Site Controls
  [Expand]Scheduler
  [Expand]HTML Editor
  [Expand]Pivot Grid
  [Expand]Tree List
  [Expand]Gauges
  [Expand]Data Editors
  [Expand]Spell Checker
  [Expand]Query Builder
 [Expand]ASP.NET MVC Extensions
 [Expand]Localization
 [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]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

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.

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