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

Hierarchical Gridview one-to-one programmatically

1 Answer 64 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Niall
Top achievements
Rank 1
Niall asked on 13 Jan 2012, 06:15 PM
Hi, 

Is it possible to do a one to one relationship on a gridview to show the data hierarchically? If this is, would it be possible to let me know how please.

Thanks

1 Answer, 1 is accepted

Sort by
0
Ivan Petrov
Telerik team
answered on 18 Jan 2012, 01:42 PM
Hello Niall,

Thank you for writing.

This is certainly achievable with RadGridView. A one-to-one relation is a special case of a one-to-many relation and is created the same way. You can find more information on building hierarchies in our online product documentation - Hierarchy of one-to-many relations. Basically, one-to-one relation is created through the data, rather than the actual relations. I have attached a sample project where I have tried to show how you can achieve your scenario.

I hope this will be useful for you. Should you have further questions, I would be glad to assist.

Kind regards,
Ivan Petrov
the Telerik team

SP1 of Q3’11 of RadControls for WinForms is available for download (see what's new).

Tags
GridView
Asked by
Niall
Top achievements
Rank 1
Answers by
Ivan Petrov
Telerik team
Share this question
or