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
Data in gridview from more than one table
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Mahesh ChandRank #1 · 393.3K reputationPosted Mar 10, 2011, 6:10 AM EST
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!
Suthish NairRank #92 · 22.8K reputationPosted Mar 12, 2011, 7:59 AM EST