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

Parent Child with 2 Grids

3 Answers 190 Views
GridView
This is a migrated thread and some comments may be shown as answers.
jerry
Top achievements
Rank 1
jerry asked on 15 Mar 2010, 05:36 PM
Using the gridview controls is there a way to create a parent child relationship and all the grids to handle the table design that they are populated with.  For instance if someone adds a row to the parent and that violates the constraints of the table will the grid display that or do I have to handle all of that on my own? When the user changes rows in the parent the child grid should automatically on it's own query the table and repopulate.  Is this possible with telerik?  My boss thinks the grids should act like the oracle forms or Access forms with the underlying datasource.  Will that functionality work with Telerik Winform controls?

Thank You

3 Answers, 1 is accepted

Sort by
0
Julian Benkov
Telerik team
answered on 17 Mar 2010, 02:45 PM
Hello jerry,

The RadGridView control can be used to present IList, IBindingList data. For parent/child scenario you can use hierarchy mode and add rows to parent and child templates, but data source objects and its relation to database or some business layer is not automatically handled from RadGridView control.

For your data layer needs you can use typed DataSet, bind to RadGridView, change some rows, insert new and then you must call Update method of you adapters to change data in your database. Another scenario is try to use our OpenAccess ORM tool or Entity framework for data layer between RadGridView control and your data storage.

More information for hierarchy mode can be found in our Demo application or in our online documentation.

 

Best wishes,
Julian Benkov
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
manoj
Top achievements
Rank 1
answered on 16 Mar 2011, 08:51 AM
Hi ,

I want to add functionality of radgrid as expand collapse column and on arrow button click we want to add reply of that discussion on particular discussion. show that multiple replies in expand arrow click.please help me as soon as possible.
0
Accepted
Richard Slade
Top achievements
Rank 2
answered on 16 Mar 2011, 10:33 AM
Hello Manoj,

from the screenshot that you have provided it looks like you need a Row Details Grid. There is a very good example of this on the demos on your PC that installed with the Telerik controls. You can find this under GridView >> Rows >> Row Details.

You may also be interested in my code library article too which extends the row details grid.

I hope that helps
Richard
Tags
GridView
Asked by
jerry
Top achievements
Rank 1
Answers by
Julian Benkov
Telerik team
manoj
Top achievements
Rank 1
Richard Slade
Top achievements
Rank 2
Share this question
or