Hi,
I have a wingrid on my form which displays the sum of columns. I would like to show the value of each summary's value in a text box. Is that possible? if it is, how could i do that?
thanks in advance,
Kamal
I beleive the event fires for each summary individually. So yes. You would just have to check the Key or the summary passed into the event so you know which text box to update.
Thank you. that was the easiest way to get the value.
if i had 4 columns with summary values (sum), could i use the same method to get each value and display it in different textbox control?
Thanks in advance.
A simpler way would be to trap the SummaryValueChanged event of the grid. This way you can simply trap for when the summary value is changed and update the TextBox.Text with the Value of the SummaryValue.
Put an ultracalcmanager on the form if it is not already there.
Then add an ultranumeric textbox to the form. On the ultranumeric textbox go to 'CalcSettings on UltraCalcManager' property. Expand the node and enter a formula in the formula field.
If you open the formula editor you will see the possibility to use the grid on your form. What that formula should be depends on your application of course. Can't help you much on that.
Hope this helps.
Peter