I am displaying my search result in a Xceed grid. The grid is editable. In the grid, one can update Country, State and City from the combobox in the grid.
* The 3 fields are related ie On change of country, the related state list should be updated in the combobox.
Now I tried using
Xceed.Wpf.DataGrid.DataRow dr = (Xceed.Wpf.DataGrid.DataRow)grdSearchResults.CurrentItem;
BindingExpression be = dr.GetBindingExpression(Xceed.Wpf.DataGrid.DataRow.DataContextProperty);
be.UpdateSource(); // or be.UpdateTarget();
Also i tried few other options like EndEdit() or LostFocus or MoveTo etc but of no use and generates the same error
the error it display is " Cant update while DeferRefresh is in use". I am using the DeferRefresh on my ObjectDataProvider.
I tried removing the DeferRefresh from ObjectDataProvider but the same error.
Can anyone please help?