Master/Detail DataGrid in Windows Form app problem

  • Thread starter Thread starter a
  • Start date Start date
A

a

Hi,

I'm following instructions at
http://msdn.microsoft.com/library/d...tml/vbconintroductiontothedatagridcontrol.asp
to create a Master/Detail DataGrid Windows Form app.

I have a DataSet with two DataTables. I also have two DataGrids.

The problem I have is that the Master DataGrid shows the plus sign, which I
can click and drill down to the details table. When I do that the Detail
table is shown in both the Master and Detail DataGrid. I don't want my
Master DataGrid to change.

I would appreciate some help.

Thanks.
 
You can set the AllowNavigation property on the Master DataGrid to False. Is
this what you wanted?
 
OK, now it does not display the plus sign anymore, which is what I wanted.
But my Details DataGrid does not change anymore. Do I have to code some
event for when the Master DataGrid row is selected? Thanks.
 
It's working now. I forgot to Fill the DataSet from the second DataAdapter;
I only Fill from the first DataAdapter. Thanks.
 
Back
Top