Hi,
I am working on master child datagridview using windows C# 2.0. How can I do this? Any sample code would be appreciated.
Regards..
Hi,
I am working on master child datagridview using windows C# 2.0. How can I do this? Any sample code would be appreciated.
Regards..
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.
Bechir BejaouiPosted May 1, 2008, 12:46 PM
them add this code
DataGridView1.DataSource = yourDataSource;
DataGridView1.DataMember = yourDataSource.Tables["MotherTable"].TableName;
DataGridView2.DataSource = yourDataSource;
DataGridView2.DataMember = yourDataSource.Tables["ChildTable"].TableName;