This is a migrated thread and some comments may be shown as answers.

Update of Calculated Columns

2 Answers 116 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Bernd Mueller
Top achievements
Rank 1
Bernd Mueller asked on 23 Jun 2010, 02:31 PM
I have a calculated column (a) as the sum of two other columns ((b) and (c)) - editing the value of one cell (eg. (b)) doesn't change the calculated value of the calculated cell (a) - what do I have to do to force the recalculation?

2 Answers, 1 is accepted

Sort by
0
Martin Vasilev
Telerik team
answered on 29 Jun 2010, 08:57 AM
Hello Bernd Müller,

As I have already answered in your other support ticket for the same question, there is no need to manually update the Expression column when changing some of the dependent values. RadGridView should refresh itself automatically. There could be something specific in your scenario, which causes the undesired behavior. I am looking forward to receiving your sample project in the support ticket.

Let me know if you have any other questions.

All the best,
Martin Vasilev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Bernd Mueller
Top achievements
Rank 1
answered on 30 Jun 2010, 09:32 AM
Thanks, it works now.

There was a misstyping in the column name so that the expression could not be evaluated correctly.

 

For i As Integer = 1 To 2

 

 

Dim col As New GridViewDecimalColumn("Col" + i.ToString())

 

RadGridView1.Columns.Add(col)

 

Next

 

 

Dim colCalc As New GridViewDecimalColumn("ColCalc")

 

colCalc.Expression =

"Col1+Col2"

 

RadGridView1.Columns.Add(colCalc)

Tags
GridView
Asked by
Bernd Mueller
Top achievements
Rank 1
Answers by
Martin Vasilev
Telerik team
Bernd Mueller
Top achievements
Rank 1
Share this question
or