Declined
Last Updated: 11 Jan 2016 11:51 by ADMIN
Svetlin
Created on: 09 Jan 2012 09:04
Category: GridView
Type: Bug Report
1
FIX. RadGridView - cannot save the current row by performing the DataContext's SaveChanges method when the control is bound to IQueryable.
You cannot save the current row by performing the DataContext's SaveChanges method when the RadGridView is bound to IQueryable.

The code should look like this to work properly:
protected sealed override void BindingNavigator_SaveAction(object sender) {
    try
    {
        this.countriesRadGridView.EndEdit();
        BindingSource bs = this.countriesRadGridView.DataSource as BindingSource;
        bs.EndEdit();
        this.DataContext.SaveChanges();
        base.FireUpdateData();
    }
    catch (Exception Ex)
    {
        string exMessage = Ex.Message;
        MessageBox.Show(exMessage);
    }
}
1 comment
ADMIN
Ivan Petrov
Posted on: 04 Dec 2015 10:53
This is not an issue in RadGridView. Please refer to the description above for more information.