Welcome to the Xceed Community Sign in | Join | Help
Community Search  

Xceed Grid: Refresh or Update the Current grid row

  •  07-21-2008, 5:49 AM

    Xceed Grid: Refresh or Update the Current grid row

    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?

View Complete Thread
Contact | Site Map | Reviews | Legal Terms of Use | Trademarks | Privacy Statement Copyright 2008 Xceed Software Inc.