Dear experts ]
how to take data in gridview from one table but data from different query and also i want to change field if any one of field changes in dropdownlist
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.
Suthish NairPosted Mar 12, 2011, 12:59 PM
Mahesh ChandPosted Mar 10, 2011, 11:10 AM
Here is an article.
Presenting Child Data along with Parent Row in Data Grid
If you do not have the relationship in the database, then there is a problem.
You can solve this problem by creating a relationship in code using the DataRelation class. Search this website for DataRelation. You will find several articles.
Another option is, load data from first table (parent) and when you do something in GridView, pass that ID to database and get matching data for that Id from child table and display it there.
Cheers!