How to merge two gridviews and display it in another gridview ??
thank u!!
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
AbhiPriya M VPosted Mar 25, 2013, 5:25 AM
Satyapriya NayakPosted Mar 25, 2013, 4:53 AM
Sreejesh SPPosted Mar 25, 2013, 4:52 AM
please use datatable by to fill gridview,then third datatble use to get values from first and second ,then this third datatable use to bind third grid view and you get the result is merging of first and second gridview
Please Read below sample code and apply your appliaction
page.cs
datatable dt=new datatable();
datatable dt2=new datatable();
datatable dt3=new datatable();
dt=<"get value from database or others'>;
dt2=<"get value from database or others'>;
gridview1.datasource=dt;
gridview1.databind();
gridview2.datasource=dt2;
gridview2.databind();