Dear,
Please help me to figure out this problem!
I have a Database with 2 tables such as: Person(ID:primarykey, Name) PersonDetail(IDdetail: primarykey, Address, job, house, ID: foreignerkey). These two table has relative as 1-many in Database.
I use gridview control in visual web developer 2008 to display all data from Person table.
And my problem is:
I hope to click on the Gridview row, then display all data from PersonDetail table, which is had a relative with Person table throught ID, to Datagrid or the other Gridview.
How ever i wish to click anywhere on Gridview row, then return the current primary key value. After that, can we used that primary key to select all record, which the same key value in the PersonDetail table, and display on Datagrid or Gridview?
I am a fresh coding. If possible, Please show me an example for my problem!
Thank you so much for your help!