I have implemented the dynamic dataGrid by following this link.
I am using Converter to bind the values from ExpandoObject. The columns shows values like total units for schools.
Item      ItemCount DefaultSchool School1  School2 School3
X-Item    200       100           50       50      0
Schools can be added dynamically at any time. Now if I add the School4 with 40 units, I want to deduct the same from default school (DefaultSchool = 60, School4 = 40).
I can make this calculations in the converter and the ItemsSource also shows the updated value but it does not reflect on the UI.
What I use the TextBox's LostFocus event with MyDataGrid.Items.Refresh, it does update the UI, but every time on lost focus, the UI will also flickers, just like a refreshing web page).
I just need to update the current row. As I am using ExpandoObject, I can't use the INotifyPropertyChanged (I believe?), so what should be the best approach in this scenario?
So how should I update the UI?