Simple nested Grid question

2 posts, 0 answers
  1. Chris Trina
    Chris Trina avatar
    86 posts
    Member since:
    Mar 2006

    Posted 13 Jun Link to this post

    I know I have done this before, but I can't remember how....don't you hate being in that situation?!?

    I want a simple nested table, of say customers and their orders, displayed in a fashion where customers are the master table, and orders are the detail table.  In other words, the grid shows a list of customers and you can expand a customer to see their orders.  I can easily get the data in a datatable where the customer data is duplicated on each row which represents a unique order.  I want to setup the grid so that I can do one bind and have it all populated.  All of the examples now show a separate databind for each of the child(nested) tables.  For efficiency and simplicity, I'd like to avoid all of the extra databinds.  I know I've done this in the past...

    Any help or examples would be greatly appreciated.

    Thanks in advance,

  2. Pavlina
    Admin
    Pavlina avatar
    6084 posts

    Posted 14 Jun Link to this post

    Hi,

    The following code library demonstrates RadGrid's capability to auto-generate a hierarchical representation of a mutli-table DataSet. You just need to set the AutogenerateHierarchy property of RadGrid to true and it will automatically generate the hierarchy based on the tables in the DataSet and their relations with one another.
    http://www.telerik.com/support/code-library/autogenerated-hierarchy

    Regards,
    Pavlina
    Telerik
    Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top