Steve Hebert's Development Blog

.Steve's .Blog

<December 2008>
SuMoTuWeThFrSa
30123456
78910111213
14151617181920
21222324252627
28293031123
45678910


Navigation

Blogs I Follow

Favorite Tools

Development Articles

Subscriptions

Post Categories

Article Categories



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

posted on Friday, February 11, 2005 9:16 AM by sdhebert





Powered by Dot Net Junkies, by Telligent Systems