Hi all,unfotunately I can not figure out how to get my xamDataPresenter refreshing its view when an item in the DataSource changes.
I bound a BindingList (private field loaded by the class constructor) to the DataSource and then change an items caption for example.I thought that would refresh the view automatically.
If I remove or add from/to the BindingList then the DataPresenter reflects the change immediately.
The only way I can update the DataPresenter is to set its DataSource to NULL and then back to the originally BindingList (the same as it was before).
I also tried calling the UpdateLayout() method of the DataPresenter... no luck though.
Any hints on this?
have a great dayAndy
Thank you Alex for pointing this out...It works like a charm... shame on me ;)
best regardsAndy
Hello Andy,
The BindingList collection will not propagate changes of its items to the XamDataGrid. For this you would have to implement the INotifyPropertyChanged interface to your underlying business class. This way, when you change the value of a property, the XamDataGrid will reflect it.