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

Nested grid different for each grid row

3 Answers 81 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Effat
Top achievements
Rank 1
Effat asked on 02 Mar 2011, 11:51 AM
I have a grid with 9 rows. Now I want to create nested grid for each 9 rows and these nested grid will be different for each row.. How can I achieve this? Can someone help please??

3 Answers, 1 is accepted

Sort by
0
Effat
Top achievements
Rank 1
answered on 03 Mar 2011, 05:04 AM
Hello? Please can anyone help??
0
Princy
Top achievements
Rank 2
answered on 03 Mar 2011, 05:36 AM
Hello Effat,


You can either use Master/Detail table or another RadGrid inside NestedViewTemplate to achieve this. If you are using master/detail table, attach DetailTableDataBind event to Radgrid. And in that event handler get the parent row and populate DetailTable accordingly. The following documentation illustrates how to achieve this.
Hierarchical data-binding using DetailTableDataBind event

And if you are using Radgrid inside NestedTableView, attach NeedDataSource event to inner grid, get the parent row and populate the inner grid accordingly.

Hope this information helps,
Princy.
0
Effat
Top achievements
Rank 1
answered on 03 Mar 2011, 09:16 AM
Thanks :)
Tags
Grid
Asked by
Effat
Top achievements
Rank 1
Answers by
Effat
Top achievements
Rank 1
Princy
Top achievements
Rank 2
Share this question
or