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

[Solved] Expressioncolumn does not update

1 Answer 96 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Peter van Rees
Top achievements
Rank 1
Peter van Rees asked on 19 Jul 2011, 03:56 PM
Hi,

I have 2 maskedtextboxcolumns. One is bound to a simple property of the bindingsource ("HeadCount"), the other is bound to a property of an objectreferenced by the bindingsource ("DailyRate.LocalizedValue").

Now I also have an expressioncolumn, with the following expression:

Dim expr As System.Linq.Expressions.Expression(Of Func(Of UnloadingPointAmount, Double)) = Function(amt As UnloadingPointAmount) amt.HeadCount * amt.DailyRate.LocalizedValue

When the HeadCount column is edited, the expression column updates beautifully. BUT, when the DailyRate.LocalizedValue column is edited no update of the expressioncolumn is triggered.

Any ideas on why this does not work? Fixes? Workarounds?

Thanks!

1 Answer, 1 is accepted

Sort by
0
Yavor Georgiev
Telerik team
answered on 21 Jul 2011, 08:50 AM
Hello Peter Van Rees,

 GridViewExpressionColumn cells listen to the PropertyChanged event of the row's data item in order to update themselves. You will need to modify your business object to raise PropertyChanged for "DailyRate.LocalizedValue" whenever the LocalizedValue property on DailyRate changes.

Best wishes, Yavor Georgiev
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Tags
GridView
Asked by
Peter van Rees
Top achievements
Rank 1
Answers by
Yavor Georgiev
Telerik team
Share this question
or