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
Hi,
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
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?