Sir,
How to get the Summary value of a column from the UltraWinGrid and Show it in a Text Box.
Can anyone help me to do this....
Thanks
R.Vasanth
Depends on the summary type, I imagine. But it's probably a double or a decimal. Why not put a breakpoint on that line of code and examine the value and see what type it is?
Hi,
Just wondering what the datatype would be on the summary value. I'm summing a column with datatype Int32, but when I try to cast as follows:
(int)ultraGrid1.Rows.SummaryValues["My Summary"].Value
...I get an Invalid Cast exception....ideas?
The summary settings on the column doesn't have a value, because the calculated value is based on the rows. For example, a summary settings on a child band would have multiple values (one for each parent row). And the same holds true for a root-level summary if you are using OutlookGroupBy to group the rows.
So to get the value of a summary, you have to get it from the rows collection. In a simply case, if you just have a flat grid and no grouping, you would do something like this:
this.ultraGrid1.Rows.SummaryValues["My Summary"].Value