Group Summary Demo

This sample demonstrates adding summaries through code. The summaries that are set for the top table are sufficient enough to create summaries in groups.

Features:



                // Adding Summaries for the Details Table.
                GridSummaryColumnDescriptor scd = new GridSummaryColumnDescriptor("Sum",  SummaryType.Int32Aggregate, "Quantity", "{Sum:#}");
                GridSummaryRowDescriptor srd = new GridSummaryRowDescriptor("Sum","Total", scd);
                srd.Appearance.AnyCell.HorizontalAlignment = GridHorizontalAlignment.Right;
                srd.Appearance.AnyCell.BackColor = SystemColors.Info;
                this.gridGroupingControl1.GetTableDescriptor("Order Details").SummaryRows.Add(srd);  

Summaries