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

Format Detail Records of Hierarchy

1 Answer 38 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Todd
Top achievements
Rank 1
Todd asked on 16 Jun 2015, 02:28 PM

I have a grid that I'm binding to a dataset. The dataset has the datarelations defined on it prior to assigning it to the grid (meaning I am not defining any relations on the grid itself). The data is displayed as I want it, with all of the details information being displayed in grids on tabs with each parent row. What I need to be able to do now is format the grids containing the detail information. How can I access those? I normally format my grids simply by using grid.columns.<whatever> and setting the properties right after I bind to my dataset. If possible I'd like to just add my detail formatting in the step as well.

 

Thanks.

1 Answer, 1 is accepted

Sort by
0
Hristo
Telerik team
answered on 18 Jun 2015, 02:49 PM
Hello Todd,

Thank you for writing.

Since you are defining the relations in your DataSet you should be knowing the schema very well. After binding RadGridView and generating the hierarchy you can access the templates from the Templates collection. Then you can format these templates the same way as if you were working on the master level.

I am sending you an example demonstrating how this can be achieved.

I hope this information helps. Should you have further questions please do not hesitate to write back.

Regards,
Hristo Merdjanov
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
Todd
Top achievements
Rank 1
Answers by
Hristo
Telerik team
Share this question
or