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
Hi,
I had the same issue last week and SummaryRows weren't the solution as they have to be visible in order for them to recalculate. I'd suggest using the UltraCalcManager and supplying a named reference and a formula to it. This should give you the column sum you need.
Regards, Mark
I do not want to loop thru the rows and sum the values, I want the grid to do it for me!
Can you maybe give me an example on how to use the summaries? What is it? A class or method on the UltraGridColumn?
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)...