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

Simple nested Grid question

1 Answer 57 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Chris Trina
Top achievements
Rank 1
Chris Trina asked on 13 Jun 2016, 09:31 PM

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,

1 Answer, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 14 Jun 2016, 08:07 AM
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.
Tags
Grid
Asked by
Chris Trina
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Share this question
or