Concept of "subforms" in vb.net
Posted on 2005-05-13
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?