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
105
How do I sum the values in a column and show them in a textbox
posted

Hi!

I'm using the UltraGrid (in namespace Infragistics.Win.UltraWinGrid) and I want to sum all the values (integers) in a certain column in the grid and put the result in a textbox (not in an extra row in the grid!). How do I do that?

I'm using version 6.2.

 Regards, Emelia

Parents
No Data
Reply
  • 1360
    posted

    You can always enumerate through your rows collection and calculate the sum yourself, but maybe you want the grid to calculate it?

     

    Have you tried using Summaries? This allows the grid to calculate certain summary columns automatically, and using the SummaryValue class or SummaryValueChanged event you can get the results (to put in your textbox)... 

Children