Completed
Last Updated: 14 Mar 2016 09:08 by ADMIN
ADMIN
Dimitar
Created on: 14 Dec 2015 11:00
Category: GridView
Type: Bug Report
1
FIX. RadGridView - exception when a row is deleted in the CellValueChanged event.
To reproduce:
void radGridView1_CellValueChanged(object sender, Telerik.WinControls.UI.GridViewCellEventArgs e)
{
    if (e.Value == null || e.Value == DBNull.Value)
    {
        e.Row.Delete();
    }
}
-  Use the enter key to confirm the change


Workaround:
void radGridView1_CellEndEdit(object sender, Telerik.WinControls.UI.GridViewCellEventArgs e)
{
    if (e.Value == null || e.Value == DBNull.Value)
    {
        e.Row.Delete();
    }
}
0 comments