[]
        
(Showing Draft Content)

Using Grouping

You can set up the display to allow Outlook-style grouping of rows. For large amounts of data, this is helpful to display the data in the order the user needs. The user selects columns by which to sort and the component then organizes and displays the data in a hierarchy with rows organized accordingly. To select a column by which to group and display that data, either double-click on the header of that column or click and drag that column into the grouping bar at the top of the page. See the figure below for an example of the terms used with grouping.

Spread for ASP.NET spreadsheet interface displays grouping terminology, helping developers complete the task described in Using Grouping.

You can provide grouping to allow users to sort the data with multiple levels of groups by dragging additional column headers into the grouping area. An example of the process of setting up two levels of grouping is shown in the following figure.

You can expand or collapse groups by clicking the expand (+) or collapse (-) indicators.

Before secondary grouping: dragging the column header into the grouping bar.

After secondary grouping: now a second level of hierarchy is shown.

Spread for ASP.NET grouping interface displays an expanded EmployeeID group beneath the LastName group header for developers organizing rows.

Spread for ASP.NET grouping interface displays nested EmployeeID and FirstName groups for developers organizing hierarchical spreadsheet rows.

When more than one level is chosen, the higher level is called the parent group and the lower level is called the child group. In the picture above with secondary grouping, the Employee ID is the parent group and the First Name is the child group.

See Also

Allowing the User to Group Rows