Completed
Last Updated: 27 Mar 2014 14:26 by ADMIN
ADMIN
Dess | Tech Support Engineer, Principal
Created on: 26 Mar 2014 09:41
Category: GridView
Type: Bug Report
1
FIX. RadGridView - NullReferenceException when deleting a child row in the ChildViewExpanding event
To reproduce:
1.Use the Self-Referencing Hierarchy help article to fill the grid with data.
2.Subscribe to the ChildViewExpanding event and use the following code snippet:
private void radGridView1_ChildViewExpanding(object sender, ChildViewExpandingEventArgs e)
{
    if (e.ParentRow.ChildRows != null && e.ParentRow.ChildRows.Count > 0)
    {
        e.ParentRow.ChildRows[0].Delete();
    }
}
0 comments