I have two DB tables Table1 and Table2
I am displaying the data of Table1 using a gridview. I want to show the data of table2 in another gridview when a user clicks on a row on gridview1 i.e I want to change the data in gridview2 when the user clicks on a row on gridview1 . Both the tables are related using PersonID.
I am using windowsforms not ASP.NET.
You can also call Detail record from First Datagrid’s “dataGridView1_SelectionChanged” Event like,