Link to home
Start Free TrialLog in
Avatar of Feyo
Feyo

asked on

Concept of "subforms" in vb.net

I'm coming from the Access and ADO world and I'm learning that I have to start thinking about things in a different way. For example, the concept of subforms in Access (parent-child linkages made between two tables based on their relationships). I was wondering if someone could get me started with migrating this thinking into vb.net.

Here is the situation:

I have a general windows application form in vb.net. I made all the necessary connections and filled a dataset with data. I want to display this data the way I had been displaying it in Access. The Access form uses subforms. My guess is that I first have to create relationships between the two tables of interest within the dataset (a one to many relationship). After that, I can fill controls on the form to reflect the form/subform concenpt of Access. So, I can put all the fields for the main table into text boxes and then put the fields of the second table into a datagrid. The user will be able to add multiple records to child table to the one record of the parent table.

Is my logic flawed? Can anyone guide me in the right direction if it is?

Thanks.
ASKER CERTIFIED SOLUTION
Avatar of davidrichardson
davidrichardson

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Feyo
Feyo

ASKER

Perfect. Thanks.