Intersoft Support Center

Enable Group Footer

WebGrid is able to show column footer total which is fixed and non-scrolled as users scroll the table's content. The column footer total shows the summary information of all rows, regardless of grouped rows.

In this topic, you will learn how to enable Group Footer total.

To enable Group Footer

  1. Bind WebGrid to AccessDataSource (Using Invoices table from NorthWind data source).
  2. Right click on WebGrid and choose WebGrid Designer.
  3. Click See all properties. Set GroupByBoxVisible to True.
  4. Switch to Advanced tab. Expand RootTable and select GroupColumns.
  5. Add two columns. The first column, set ColumnMember to CustomerID, SortOrder to Ascending. The second one, set ColumnMember to ProductName, SortOrder to Ascending.
  6. Go to Columns. Select UnitPrice and set AggregateFunction to Avg and FooterText to "Avg:".
  7. Select Quantity and set AggregateFunction to Sum and FooterText to "Sum:".
  8. Select Discount and set AggregateFunction to Max and FooterText to "Max:".
  9. Run the project.
Previous Next