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

Get RowDetails elements

1 Answer 64 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Freddy
Top achievements
Rank 1
Freddy asked on 29 Jul 2015, 04:22 PM
I'm using a GridView wich RowDetailsTemplate is another GridView, i need to iterate inner GridView rows... i'm iterating parent GridView rows this way

IList<GridViewRow> rows = radGridView.ChildrenOfType<GridViewRow>();

but how can i get the GridView inside the row details template 

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 30 Jul 2015, 01:32 PM
Hi Freddy,

Generally, working directly with the visual elements of RadGridView is not recommended, due to the virtualized nature of the control. I suggest you working on data-level instead and iterate over the nested collection used as an ItemsSource of the RowDetailsTemplate. This can be achieved through the Items collection of RadGridView.

Would such approach fit your requirements?

Best Regards,
Stefan
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
GridView
Asked by
Freddy
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or