Fill GridView Hierarchical with the same DataSource

2 posts, 0 answers
  1. Thiago
    Thiago avatar
    2 posts
    Member since:
    May 2017

    Posted 07 Jan 2019 Link to this post

    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.

     

     

     

  2. Hristo
    Admin
    Hristo avatar
    1520 posts

    Posted 08 Jan 2019 Link to this post

    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.
Back to Top