Master/Detail DataGrid in Windows Form app problem

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.
 
T

Tim Wilson

You can set the AllowNavigation property on the Master DataGrid to False. Is
this what you wanted?
 
A

a

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.
 
A

a

It's working now. I forgot to Fill the DataSet from the second DataAdapter;
I only Fill from the first DataAdapter. Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top