GridView for ASP.NET Web Forms generates client-side script that allows users to collapse and expand the groups without round trips to the server.
If you set the OutlineMode property to StartCollapsed or StartExpanded, the grid will display expanded/collapsed icons next to each group header row. The users can click these icons to collapse and expand the groups to see the overall structure or the details of the data.
The behavior for the outline nodes is as follows:
You can select different icons for the group headers using the CollapsedImageClass and ExpandedImageClass properties.
For additional information on grouping, see the GridView for ASP.NET Web Forms Task-Based Help.