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

Access on parent row

1 Answer 34 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Sven Honert
Top achievements
Rank 1
Sven Honert asked on 07 Sep 2012, 03:09 PM
Hello @all,



How can I get from nested GridRow to parent-Row via "RowActivated"-Event from nested Grid.


Thank you in advance

Sven

1 Answer, 1 is accepted

Sort by
0
Accepted
Dimitrina
Telerik team
answered on 10 Sep 2012, 08:58 AM
Hello,

You can find the corresponding parent row like so:

private void childGrid_RowActivated(object sender, Telerik.Windows.Controls.GridView.RowEventArgs e)
{
var parentRow = e.Row.ParentOfType<RadGridView>().ParentRow;
}
All the best,
Didie
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
GridView
Asked by
Sven Honert
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Share this question
or