473,412 Members | 2,306 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,412 software developers and data experts.

VS2005 - Questions about Data Sources window

Hello,

A section in Data Sources window is mystifying to me.

In the case of my code the Data Sources window shows my references to
the data access layer.

First here is what I see in my Data Sources window ...
([+] means expandable, [-] means expanded, [x] is a checked checkbox,
"QmsDataLayer" is the name of the referenced data layer.)

\\
{} QmsDataLayer
[+] DataSet1.lkpDeviceTypeDataTable
[+] DataSet1.lkpLaborCostCodeRateDataTable
[+] DataSet1.lkpOptionCategoryDataTable
[+] DataSet1.tbl050OptionDataTable
{} QmsDataLayer.DataSet1TableAdapters
[-] lkpDeviceTypeTableAdapter <<< What is this?
[x] ClearBeforeFill
//

1.) Why is only one TableAdapter represented in this section?
\\
{} QmsDataLayer.DataSet1TableAdapters
[-] lkpDeviceTypeTableAdapter
//

The references as shown in the Class View for this project shows all
the TableAdapters under "{} DataSet1TableAdapters"...
\\
[-] QmsUI
[-] References
[-] QmsDataLayer
[-] {} QmsDataLayer
[+] Class1
[+] DataSet1
[-] {} DataSet1TableAdapters
[+] lkpDeviceTypeTableAdaper
[+] lkpLaborCostCodeRateTableAdaper
[+] lkpOptionCategoryTableAdaper
[+] tbl050OptionTableAdaper
//

In other words, why don't I see this in the Data Sources window?...
\\
{} QmsDataLayer.DataSet1TableAdapters
[-] lkpDeviceTypeTableAdapter
[-] lkpLaborCostCodeRateTableAdapter
[-] lkpOptionCategoryTableAdapter
[-] tbl050OptionTableAdapter
//

2.) The one TableAdapter present has the option "ClearBeforeFill"
selected. With the others not present does that mean that I can only
have this feature available for the one TableAdapter?
\\
{} QmsDataLayer.DataSet1TableAdapters
[-] lkpDeviceTypeTableAdapter <<< What is this?
[x] ClearBeforeFill
//

Then there is this contradiction to consider. In my form(s) the
TableAdapters are identified as shown below and each of these has its
property "ClearBeforeFill" set to "True"
\\
DataSet11.LkpDeviceTypeTableAdapter1
DataSet11.lkpLaborCostCodeRateTableAdapter1
DataSet11.lkpOptionCategoryTableAdapter1
DataSet11.tbl050OptionTableAdapter1
//

4.) This brings me to the question... why the section "{}
QmsDataLayer.DataSet1TableAdapters" even present in the Data Sources
window? My first guess would be that it is brought in with the
reference to QmsDataLayer, but the class view of QmsDataLayer looks
like this...

\\
QmsDataLayer
[-] {} QmsDataLayer
[+] Class1
[+] DataSet1
[-] {} DataSet1TableAdapters
[+] lkpDeviceTypeTableAdaper
[+] lkpLaborCostCodeRateTableAdaper
[+] lkpOptionCategoryTableAdaper
[+] tbl050OptionTableAdaper
[+] ...
[+] ...
//

The presence of all the TableAdapters under "{}
DataSet1TableAdapters" brings me back to question #1 about why there
is only one TableAdapter shown under "{}
QmsDataLayer.DataSet1TableAdapters".

It is not because I haven't refreshed the Data Source window.

Does anyone have any explanation for all this?

Thank you,
dbuchanan

Dec 1 '05 #1
1 2730
Hi,

"dbuchanan" <db*********@hotmail.com> wrote in message
news:11**********************@g44g2000cwa.googlegr oups.com...
Hello,

A section in Data Sources window is mystifying to me.

In the case of my code the Data Sources window shows my references to
the data access layer.

First here is what I see in my Data Sources window ...
([+] means expandable, [-] means expanded, [x] is a checked checkbox,
"QmsDataLayer" is the name of the referenced data layer.)

\\
{} QmsDataLayer
[+] DataSet1.lkpDeviceTypeDataTable
[+] DataSet1.lkpLaborCostCodeRateDataTable
[+] DataSet1.lkpOptionCategoryDataTable
[+] DataSet1.tbl050OptionDataTable
{} QmsDataLayer.DataSet1TableAdapters
[-] lkpDeviceTypeTableAdapter <<< What is this?
[x] ClearBeforeFill
//

1.) Why is only one TableAdapter represented in this section?
\\
{} QmsDataLayer.DataSet1TableAdapters
[-] lkpDeviceTypeTableAdapter
//

The references as shown in the Class View for this project shows all
the TableAdapters under "{} DataSet1TableAdapters"...
\\
[-] QmsUI
[-] References
[-] QmsDataLayer
[-] {} QmsDataLayer
[+] Class1
[+] DataSet1
[-] {} DataSet1TableAdapters
[+] lkpDeviceTypeTableAdaper
[+] lkpLaborCostCodeRateTableAdaper
[+] lkpOptionCategoryTableAdaper
[+] tbl050OptionTableAdaper
//

In other words, why don't I see this in the Data Sources window?...
\\
{} QmsDataLayer.DataSet1TableAdapters
[-] lkpDeviceTypeTableAdapter
[-] lkpLaborCostCodeRateTableAdapter
[-] lkpOptionCategoryTableAdapter
[-] tbl050OptionTableAdapter
//

2.) The one TableAdapter present has the option "ClearBeforeFill"
selected. With the others not present does that mean that I can only
have this feature available for the one TableAdapter?
\\
{} QmsDataLayer.DataSet1TableAdapters
[-] lkpDeviceTypeTableAdapter <<< What is this?
[x] ClearBeforeFill
//

Then there is this contradiction to consider. In my form(s) the
TableAdapters are identified as shown below and each of these has its
property "ClearBeforeFill" set to "True"
\\
DataSet11.LkpDeviceTypeTableAdapter1
DataSet11.lkpLaborCostCodeRateTableAdapter1
DataSet11.lkpOptionCategoryTableAdapter1
DataSet11.tbl050OptionTableAdapter1
//

4.) This brings me to the question... why the section "{}
QmsDataLayer.DataSet1TableAdapters" even present in the Data Sources
window? My first guess would be that it is brought in with the
reference to QmsDataLayer, but the class view of QmsDataLayer looks
like this...

\\
QmsDataLayer
[-] {} QmsDataLayer
[+] Class1
[+] DataSet1
[-] {} DataSet1TableAdapters
[+] lkpDeviceTypeTableAdaper
[+] lkpLaborCostCodeRateTableAdaper
[+] lkpOptionCategoryTableAdaper
[+] tbl050OptionTableAdaper
[+] ...
[+] ...
//

The presence of all the TableAdapters under "{}
DataSet1TableAdapters" brings me back to question #1 about why there
is only one TableAdapter shown under "{}
QmsDataLayer.DataSet1TableAdapters".

It is not because I haven't refreshed the Data Source window.

Does anyone have any explanation for all this?
I don't think those TableAdapters should be under Data Source Window, i
managed to get one tableadapter under it with a checkbox for
ClearBeforeFill, but this checkbox just represent what will be used when you
drag it to the Form. It's not to set the property or not.

So i would remove it. The question is how did you end up with this
TableAdapter under Data Sources ? The way i managed to get one there was to
choose "New Data Source", then "Object" and then select an already existing
TableAdapter. That was just for testing, you really shouldn't have
TableAdapters under Data Source .......

If you want to configure the TableAdapters, you need to get the project in
which they were created, open Data Sources window, click on your Typed
DataSet and right-click an then choose "Edit DataSet With Designer", you
should now see a visual representation of all the DataTable's and
TableAdapters which you can also configure.

"ClearBeforeFill" is a property which you can set using Properties Window on
an _instance_ of a TableAdapter that is on a Form or from code.

HTH,
Greetings


Thank you,
dbuchanan


Dec 1 '05 #2

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

Similar topics

6
by: Vayse | last post by:
I removed the Beta 2, and installed VS2005 Release Candidate. However, now have a bug where tables are not visbile in the data sources window. I checked on the MS site, and its bug ID FDBK37411 ...
0
by: neilsanner | last post by:
Hi, I'm using VB 2005 Express Edition. I've just added a data source to my project. In the tutorial I follow (* see link below), it says that I should be able to drag a table from the data...
0
by: dbuchanan | last post by:
Hello, How to I update a table or tableAdapter in my dataset1.xsd after I have added new columns to the underlying table? I refreshed the datasource in server explorer - it worked there but...
4
by: Jakob Lithner | last post by:
I just read an interesting article on Data Sources in Visual Studio 2005: http://msdn.microsoft.com/vbasic/default.aspx?pull=/library/en-us/dnvs05/html/newdtastvs05.asp It was an eye opener on...
0
by: GS | last post by:
Documentation states that there supposed to be a "Data Sources" windows in VS 2005. See below. I can not find Data menu in VS 2005 anywhere. Anybody sees that menu? Opening the Data Sources Window...
1
by: Johhy | last post by:
Hi, I recently took the web services certification test, and afterward I looked at some braindump-question to see what the correct answer was. However, I still don't know the correct answer and...
10
by: David Lee Conley | last post by:
When I open the Data Sources window and create a new data source, everything works fine. But if I have a form showing in the IDE, the Data Sources window becomes disabled and doesn't display any...
3
by: Rolf Welskes | last post by:
Hello, the following sample application in ASp.net 2.0 / VS2005 (Webproject). in an testPage.aspx ................ <P><A href="01Test01A.aspx">Link to 01Test01 A</A></P> <P><A...
21
by: Peter Bradley | last post by:
Hi all, This post is sort of tangentially related to my earlier posts on configuration files for DLLs. Does anyone know how to create typed DataSets using VS2005's new DataSet designer, but...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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,...
0
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...

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.