This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
I have a datagrid with an Observable Collection as data source. A row can be selected (single selection) and via a button I set the data context for the stackpanel around some textboxes. the text properties of the texboxes are bound to the selected item. As soon as I set the data context the textboxes display the content correctly and when I edit a textbox the object set as data context gets updated and the datagrid displays the value correctly. When I change the value of the bound object by code behind directly the datagrid does not redraw the modified corresponding cell until I go over with the cursor which forces a redraw. Any ideas ? thanks gmd |
|
|
This might be too obvious of a question, but did you implement INotifyPropertyChange in the elements of ObservableCollection ? |
|
|
Hello gmd I've tried this out and it's working at my end. Could you please send us a repro project so we can look into this for you further. Jason Fauchelle |
|
|
It was the notification as previous poster mentioned. I have a super class for that and had restructured and did not inherit that .. sorry .. and thanks for both your replies regards gmd |
|