473,405 Members | 2,421 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,405 software developers and data experts.

DataAdapters FillBy vs GetDataBy

Shashi Sadasivan
1,435 Expert 1GB
Hi,
I am a very frequent user of the getdataBy method of an adapter.
However I came across this other thing today.
I have a dataset File which contains multiple datatables.
Just to make life a bit simpler i created an instance of the dataset file (not of the tabless..which should mean that it instantiates the tables too)

Now when i was assigning the dataTable within that dataset using the getDataBy method, I was given a compile time exception: Property or indexer 'XX.XXX.DSall.all1' cannot be assigned to -- it is read only

However if i feed it using the fill method, the compiler is happy about that.
So if it was only a read only item, them how come does the fill by get away.

The fillBy method reduces the readability (for me, just not conventional for me)

Is there any explanation for this behaviour?

cheers....and thanks

Platform: .Net 2.0, C#, Winforms
Oct 15 '07 #1
0 3914

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: hillscottc | last post by:
I have two DataAdapters....1)daStandard does a SELECT *, and 2)daDuplicates uses a stored proc which returns only rows with some duplicate data. Problem is, when I butRefresh_Click and I have...
2
by: Vik | last post by:
Is it possible to loop through all dataadapters on page? Thanks
4
by: Jon Maz | last post by:
Hi, I just read the following in an old NG thread: "when you use the adapter with a closed connection it will open it, do your requested database access, and close it immediately. If you use...
0
by: dbuchanan | last post by:
Hello, I have added a query to my TableAdapter that accepts a parameter (The ID) to filter the data. It will return only one record. I tested it in the designer and it returns one record as...
2
by: JohnT | last post by:
Okay... I'm using VB.net (2003) and I am accessing an MS Access DB file. I have two DataAdapters that I use to search for specific info. The two of them are similar except one is a Date, the...
0
by: Tina | last post by:
I converted my project and it runs ok but when I look at that .aspx page there are no dataadapters. I have tried help and msdn search with words like "conversion" "upgrade" " 2003 to 2005" and...
2
by: =?Utf-8?B?Q2hyaXM=?= | last post by:
Can someone help me understand how to use this example from MS in my code: string cityValue = "Seattle"; customersTableAdapter.FillByCity(northwindDataSet.Customers, cityValue); I am not sure...
3
by: flushfire | last post by:
I posted this already in VB's ask a question thread but nobody's answering ATM, I really need an answer ASAP. Anyways, Im a noob in both VB and SQL so I just followed the walkthrough MS provides. I...
0
by: news.microsoft.com | last post by:
Hello I have a DBGrid which is bound to database. Now I click and add a query, which is something like: select * from clients where name=@name Then VS automatically creates the editbox and...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
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
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...

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.