Column Aggregates not persisted between postbacks in Intersoft's webgrid.net product.
The Intersoft WebGrid.NET product does not persist the AggregateFunction setting on the column between postbacks. Therefore, the first time you configure the grid it will work, but after subsequent postbacks it will no longer work.
Given a form where “complete_qty“ is being summed, the following code should be placed in the “InitializeLayout” event.
e.Layout.ColumnFooters = ColumnVisibility.Yes
Dim oCol As WebGridColumn
For Each oCol In sGrid.RootTable.Columns
If oCol.DataMember = "complete_qty" Then
oCol.AggregateFunction = AggregateFunctions.Sum
End If
Next