Wednesday, August 30, 2017

// // Leave a Comment

How to show Gridview inside another Gridview


In this article I am going to explain how to Show Gridview inside a another Gridview

As the first step need to drag and drop a Gridview to design form and bind data as I have discussed in How to bind data with Gridview.
Next add template column as we discount in How to add Template column in Gridview.


We have to add a label to Item Template and bind data. Click on Label control and go to Edit data binding and bind the data field with field binding bound to. Then drag and drop another Gridview inside to Item Template and bind data.

Important thing is data source query. need to pass parameter to data source. We have to pass the value to data source from main Gridview template column.

Now you can see row wise data with related data with a another Gridview.



0 comments:

Post a Comment