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
715
Doing a Row Summary Programatically
posted

Hi,

Can you point me to a code snippet that will programatically create a summary on a column and display the summary in the grid.

Thanks

Rich

 

Parents
No Data
Reply
  • 2334
    Verified Answer
    posted
    You can programatically create summaries by adding to the Summaries collection of the appropriate Band. For example,

    grid.DisplayLayout.Bands[0].Summaries.Add(Infragistics.Win.UltraWinGrid.SummaryType.Sum, myColumn);

    This will add sum up all values in myColumn and display a summary row at the bottom of the grid.
Children
No Data