This is a migrated thread and some comments may be shown as answers.

RowIsExpandedChanged called before child-elements exist

0 Answers 69 Views
GridView
This is a migrated thread and some comments may be shown as answers.
marc
Top achievements
Rank 1
marc asked on 28 Sep 2011, 01:26 PM
{
    ...
    grid.RowIsExpandedChanged += new EventHandler<RowEventArgs>(grid_RowIsExpandedChanged);
}
 
 
void grid_RowIsExpandedChanged(object sender, RowEventArgs e)
{
    RadGridView cur = sender as RadGridView;
    IList<RadGridView> subgridlist = cur.ChildrenOfType<RadGridView>();
    for (int i = 0; i < subgridlist.Count; i++)
    {
        ...
    }          
}

Using RadGridView I wanted to edit the child-elements when the hirarchy is expanded. In my case another RadGridView. The child element is not existant when the hirarchy is opened, but it's there when I close it again. So I assume the RowIsExpandedChanged Event fired before generating the controls. Is there a way for me to access the child elements when the hirarchy has been loaded, e.g. "RowIsExpandedLoaded"?

No answers yet. Maybe you can help?

Tags
GridView
Asked by
marc
Top achievements
Rank 1
Share this question
or