473,473 Members | 2,021 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

ADO.NET 2.0 - Central approach

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

--
Dirk Schelfaut
..NET developper

Nov 23 '05 #1
3 934
Dirk,

In my opinion did you ask almost the same question in this newsgroups 3
hours ago, got two different answers and are it asking now almost the same
new.

Some reason?

Cor
Nov 23 '05 #2
Yes

I'll ask it again.
Why can't I use the same datatable and tableadapter in more then one form if
the sourcetable is the same on both forms.
Seperate components mean seperate validations, seperate fills, updates, etc.
I can code the databindings, but then I lose the flexibility of dragging,
dropping, configuring a component in design-time.

Greetings

--
Dirk Schelfaut
..NET developper
"Cor Ligthert [MVP]" wrote:
Dirk,

In my opinion did you ask almost the same question in this newsgroups 3
hours ago, got two different answers and are it asking now almost the same
new.

Some reason?

Cor

Nov 23 '05 #3
'Flexibility' of using the wizards? I would say you are losing the
flexibility *by* using the wizards.

I am of the opinion that they are only to be used as learning tools and are
not suited for production applications.

In any case, as Cor pointed out, your question already got answered. Did
you not like the first answers? It's not like you can just keep asking until
you get the answers you like.

"Dirk Schelfaut" <Di******@newgroups.nospam> wrote in message
news:C8**********************************@microsof t.com...
Yes

I'll ask it again.
Why can't I use the same datatable and tableadapter in more then one form
if
the sourcetable is the same on both forms.
Seperate components mean seperate validations, seperate fills, updates,
etc.
I can code the databindings, but then I lose the flexibility of dragging,
dropping, configuring a component in design-time.

Greetings

--
Dirk Schelfaut
.NET developper
"Cor Ligthert [MVP]" wrote:
Dirk,

In my opinion did you ask almost the same question in this newsgroups 3
hours ago, got two different answers and are it asking now almost the
same
new.

Some reason?

Cor

Nov 23 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Ray Lavelle | last post by:
I have an application which runs in many different stores. Stores that are within a chain want to be able to share their client lists. I want to implement a sync process where each application...
1
by: Ray Lavelle | last post by:
I have an application which runs in many different stores. Stores that are within a chain want to be able to share their client lists. I want to implement a sync process where each application...
2
by: TBOOTS | last post by:
We developed a db to support some data entry work and reporting. The work is done in US, Europe, & Asia. When we rolled out the db, it worked fine in the US, but Asia & Europe took an hour to open...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.