Access on parent row

2 posts, 1 answers
  1. Sven Honert
    Sven Honert avatar
    13 posts
    Member since:
    Feb 2010

    Posted 07 Sep 2012 Link to this post

    Hello @all,



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


    Thank you in advance

    Sven
  2. Answer
    Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 10 Sep 2012 Link to this post

    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.

Back to Top