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

Fill GridView Hierarchical with the same DataSource

1 Answer 124 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Thiago
Top achievements
Rank 1
Thiago asked on 07 Jan 2019, 03:34 PM

How to I can fill the GridView Hierarchical with the same DataSource ? 

I did a query to list some fields and I grouped in a Linq and attributtes to a BindingSource to show in the main GridView and it worked, but I need fill the GridView Hierarchical with the same query, but without grouping, then I created a new BindingSource and attributes a Linq to he without grouping but not works.

 

 

 

1 Answer, 1 is accepted

Sort by
0
Hristo
Telerik team
answered on 08 Jan 2019, 07:21 AM
Hi Thiago,

Each of the hierarchies in the grid is defined in its own template and you can specify a data source according to your scenario. You can refer to the following article explaining how the templates can be set up programmatically: https://docs.telerik.com/devtools/winforms/controls/gridview/hierarchical-grid/binding-to-hierarchical-data-programmatically. The screenshot indicates that the inner template is empty. Can you please check if the data which is returned and used as a data source is the one you are expecting. Please also check how the relationship between the templates is configured.

I hope this will help. Let me know if you need further assistance.

Regards,
Hristo
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
GridView
Asked by
Thiago
Top achievements
Rank 1
Answers by
Hristo
Telerik team
Share this question
or