ComponentOne GridView for ASP.NET AJAX: Using GridView for ASP.NET AJAX > Grouping > Setting Grouping Properties at Design Time

Setting Grouping Properties at Design Time

You can set up the Grouping properties at design time using the Property builder. You will use three tabs in the C1GridView Properties dialog box to set up each aspect of data grouping:

      Grouping tab: This tab contains a list of columns. For each column that you want to group on, set the Position property to determine where the group header and footer rows should be displayed (set Position to None to remove grouping for a column). Also set the HeaderText (and/or FooterText) property to determine what will be displayed in the group header/footer rows. Optionally, set up the group header and footer styles. See Grouping Tab for more information.

      Columns tab: Set the Aggregate property on each column that you want to aggregate on. Usually, these will be columns that contain numeric values, and will not be grouped on. See Columns Tab for more information.

      Format tab: Select each column that you are grouping on and set the styles for the group header and group footer rows. Typically, you will set the background color so the group headers and footers stand out from the regular rows. See Format Tab for more information.

For additional information on the Property builder, see Using the Property Builder.


Send comments about this topic to ComponentOne.
Copyright © ComponentOne LLC. All rights reserved.