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

[Solved] Getting from GridViewRow to RadGridView

2 Answers 143 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Greg
Top achievements
Rank 1
Greg asked on 08 Jun 2009, 09:05 PM
Hello all,
    Is it possible to get from a GridViewRow to the RadGridView that contains it?

Thanks,
Greg Case

2 Answers, 1 is accepted

Sort by
0
Accepted
Vlad
Telerik team
answered on 09 Jun 2009, 05:16 AM
Hi Greg,

You can use our extension methods:

GridViewDataControl dataControl = row.ParentOfType<GridViewDataControl>();

or

RadGridView gridView = row.ParentOfType<RadGridView>();

Best wishes,
Vlad
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Greg
Top achievements
Rank 1
answered on 09 Jun 2009, 12:44 PM
Thanks Vlad!
Tags
GridView
Asked by
Greg
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Greg
Top achievements
Rank 1
Share this question
or