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

Traverse columns in a HierarchyChildTemplate

1 Answer 43 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Anne Lyon
Top achievements
Rank 1
Anne Lyon asked on 08 Jul 2015, 07:59 AM

Hi,

 

I have a parent-child gridview where I need to be able to access all columns to change the column header programmatically.

How do I access the childcolumns in the Gridview in my parentGrid's HierarchyChildTemplate so that I can loop through them?

1 Answer, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 10 Jul 2015, 02:27 PM
Hi,

You can subscribe for the AutoGeneratingColumn or DataLoaded events of the hierarchical GridView and implement the changes.

Alternatively, you can directly manually define the columns for RadGridView within HierarchyChildTemplate. Read more on Defining Columns

As a side note, I would suggest you using RowDetailsTemplate instead.

Regards,
Dimitrina
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
Anne Lyon
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Share this question
or