N
news.microsoft.com
I have a few classes that I need to present a master detail relationship in
a pair of DataGridViews, i.e.,
class SomeDataList : List<SomeData>
class MyMaster : List<MyDetail> {}
class MyDetail
{
SomeDataList myData;
}
I have setup the first DataGridView
masterDataGridView.DataSource = myMaster;
And I get the list of MyDetails as expected.
Now, when I click on an instance of MyDetail in the DataGridView, I want to
have the detailDataGridView to show the contents of myData... but I'm not
sure how to setup the DataSource, Binding, etc...
Any ideas?
I
a pair of DataGridViews, i.e.,
class SomeDataList : List<SomeData>
class MyMaster : List<MyDetail> {}
class MyDetail
{
SomeDataList myData;
}
I have setup the first DataGridView
masterDataGridView.DataSource = myMaster;
And I get the list of MyDetails as expected.
Now, when I click on an instance of MyDetail in the DataGridView, I want to
have the detailDataGridView to show the contents of myData... but I'm not
sure how to setup the DataSource, Binding, etc...
Any ideas?
I