Silverlight DataGrid not refreshing as expectedSilverlight DataGrid not refreshing as expected
Old forum URL: forums.lhotka.net/forums/t/6953.aspx
Jack posted on Friday, May 15, 2009
I am using the standard Silverlight Datagrid bound to a EBL and I am updating multiple databound properties for my BO after a selection changed event from a combo box which ultimately triggers PropertyChanged but I'm not getting the data refreshed with out a call to the DataProvider.Rebind().
So:
Change lookup value in combobox
- ComboBox_SelectionChanged
- trigger DataModifiedEvent(comboxBox.SelectedItem)
- OnDataModifiedEvent( selectedItem)
- compare values and call BO.UpdateData(someID)
//DataProvider.Rebind()
BO.UpdateSomeDataMethod(new Id)
- BO.SetProperty('abc', 123)
- BO.SetProperty('def', 123)
Without the DataProvider.Rebind() in place my data doesn't refresh on the screen. It is there, I can tab around and it will show up once I go into Editmode in a cell.
Anyhow I'm a little unclear why I have to do the Rebind()? I would have thought that the the grid would have gotten the PropertyChangedNotification and done it it's self...
thanks
jack
Copyright (c) Marimer LLC