Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
285
How to get Column Summary Values programmatically?
posted

Hi,

I have added summaries in WebDataGrid.

How can I get the value of each summary in server side code. 

If anybody knows kindly share it with piece of code.

Thanks

Parents
No Data
Reply
  • 33839
    Suggested Answer
    posted

    Hi sheeraz001,

    There is a summary calculated server event that you can handle where the event args has the summary value.  You could also get it from the the Records off the data view of the grid with code like follows:

    this.WebDataGrid1.GetDataView().DataAdapter.Records.GetAverage(key)

    If you would like to see a public getter off of the Summary class, please submit a feature request.

    regards,
    David Young 

Children