G
Guest
I don't seem to grasp the central approach of the data source window.
From this central data-window you drag and drop tables or fields on forms
and/or controls. Dataset, tableadapter and other components are created. The
auto-generated code in the load statement fills the newly created
datatable(s).
But this functionality is also executed even when you use 2 different forms
that need to show the same data. Let's work with Customers.
On form1 is a new customer added and form2 isn't aware of the new record,
because it has a different dataset and tableadapter.
Opening form1 executes the fill-method. The same happens when form2 is
created, although the Customers-records are already present on the
client-machine when form1 opened.
I can link the controls on Form2 in code to the dataset, etc. from form1,
but then I lose the userfriendlyness of dragging and dropping and configuring
in design-time.
Am I overseeing something here?
Many thanks in advance for your answer(s).
From this central data-window you drag and drop tables or fields on forms
and/or controls. Dataset, tableadapter and other components are created. The
auto-generated code in the load statement fills the newly created
datatable(s).
But this functionality is also executed even when you use 2 different forms
that need to show the same data. Let's work with Customers.
On form1 is a new customer added and form2 isn't aware of the new record,
because it has a different dataset and tableadapter.
Opening form1 executes the fill-method. The same happens when form2 is
created, although the Customers-records are already present on the
client-machine when form1 opened.
I can link the controls on Form2 in code to the dataset, etc. from form1,
but then I lose the userfriendlyness of dragging and dropping and configuring
in design-time.
Am I overseeing something here?
Many thanks in advance for your answer(s).