Continuous form or Sub form ???

TELO

New member
Joined
Sep 22, 2006
Messages
2
Programming Experience
Beginner
Hi,

I would like to show Master & Details information on a VB.NET form. For example show customer information on top of the form and customer Orders information on the details section. In access it could be achieved by using sub form.

Is there any way I can do this in VB.NET?

Thanks in advance.
 
Access probably uses a Sub Form because the detail information comes
from another Dataset than the Master. You could use one form and
create a Datagrid view of the detail.
 
You can use a single DataGrid to navigate multiple tables in the same DataSet as long as you don't need to see both tables at the same time. Alternatively you can use two grids by binding the child grid to a relationship rather than the child table. That way it will update automatically when the selection in the parent grid changes. Alternatively you could use a second form that is only opened when you double-click a parent record or use some other means, like a button. Give an indication of your preferred method and we can provide more details.
 
If you have two forms consider the following:

1. You open form1, then you open form2

2. Then lets say you click on your task bar to bring focus of another program/form that you need to look at for a minute - and then maybe
even another form etc.

3. Now you have your two forms somewhere in the background, unless
you have told them both or one to close when the deactivate is fired.

The point : its easier to keep track of one form.

Good luck
 
Back
Top