473,425 Members | 1,931 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,425 software developers and data experts.

ADO or ADOn't, binding data to an array?

I have an array (2 Dimensional) which has been filled from a text file and
want to load
these several hundred fields into my db, which consists of 3 tables(each of
which will be receiving a portion of this data)
I also want to be able to do the reverse > load my db into an array for
processing into a report.

I've worked with several textbook examples of ADO.Net programs to manipulate
data within an Access db, but I haven't found anything that covers what I am
trying to do now, other than a few hints that yes, a dataset can be bound to
an array.

Can anyone give me a hint as to how to go about doing this?Using ADO.Net, as
mentioned above.
Nov 20 '05 #1
8 4376
"What-a-Tool" <Fr***********************@cox.net> wrote in
news:bD69b.60484$Zw4.56385@lakeread03:
I've worked with several textbook examples of ADO.Net programs to
manipulate data within an Access db, but I haven't found anything that
covers what I am trying to do now, other than a few hints that yes, a
dataset can be bound to an array.


Do you have to use an array? It is much easier to do this with a dataset or
datatable.

--
Lucas Tam (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/
Nov 20 '05 #2
Hello,

"What-a-Tool" <Fr***********************@cox.net> schrieb:
Can anyone give me a hint as to how to go about doing
this?Using ADO.Net, as mentioned above.


This is a VB.NET language group. Notice that you will have a better
chance to get an answer if you post to the ADO.NET newsgroup in future:

news://msnews.microsoft.com/microsof...amework.adonet

Web interface:

http://msdn.microsoft.com/newsgroups...amework.adonet

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
http://www.mvps.org/dotnet
Nov 20 '05 #3
Data Tables - Interesting things!
Been cramming through Ado.Net - Step by step since I decided to try my hand
at this project (just a personal learning project) using ADO. Just got to
the section on Data tables and data viewers, and I see your point.
By the way - I did post this on the ADO news group. I didn't get a response.
Theres more action in this group, and the subjects are related, aren't they?

"Lucas Tam" <RE********@rogers.com> wrote in message
news:Xn**************************@140.99.99.130...
"What-a-Tool" <Fr***********************@cox.net> wrote in
news:bD69b.60484$Zw4.56385@lakeread03:
I've worked with several textbook examples of ADO.Net programs to
manipulate data within an Access db, but I haven't found anything that
covers what I am trying to do now, other than a few hints that yes, a
dataset can be bound to an array.

Do you have to use an array? It is much easier to do this with a dataset

or datatable.

--
Lucas Tam (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/

Nov 20 '05 #4
Hi Herfried,

|| This is a VB.NET language group. Notice that you will have
|| a better chance to get an answer if you post to the ADO.NET
|| newsgroup in future:

ROFL

Did you read What-a-Tool's 11:32am response?

|| By the way - I did post this on the ADO news group.
|| I didn't get a response. Theres more action in this group,
|| and the subjects are related, aren't they?

What-a-Tool - it's 'cos we're a nicer bunch over here, that's why. Related
or not, if help is possible, help is given - despite the best efforts of the
police to redirect the traffic, lol. :-D

Regards,
Fergus
Nov 20 '05 #5
Hello,

"Fergus Cooney" <fi******@tesco.net> schrieb:
a better chance to get an answer if you post to the ADO.NET
newsgroup in future:
ROFL

Did you read What-a-Tool's 11:32am response?


I read it now. The problem is that everybody posts the ADO.NET related
questions to the language groups. That's why there is few traffic in the
ADO.NET group.
What-a-Tool - it's 'cos we're a nicer bunch over here,
that's why. Related or not, if help is possible, help is given
ACK. If someone has an answer, he is free to post it here.
- despite the best efforts of the police to redirect the traffic,
lol. :-D


Nobody wants to redirect traffic...

;-)

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
http://www.mvps.org/dotnet
Nov 20 '05 #6
"What-a-Tool" <Fr***********************@cox.net> wrote in
news:SEB9b.64780$Zw4.48304@lakeread03:
Data Tables - Interesting things!
Been cramming through Ado.Net - Step by step since I decided to try my
hand at this project (just a personal learning project) using ADO.
Just got to the section on Data tables and data viewers, and I see
your point. By the way - I did post this on the ADO news group. I
didn't get a response. Theres more action in this group, and the
subjects are related, aren't they?


m.p.d.l.vb seems to have more traffic than the ADO.NET group. Anyhow,
yes, ADO.NET and VB.NET are related.

However, ADO and ADO.NET are two totally different things. ADO is
Microsoft's older Data Access layer while ADO.NET is the the new version
for .NET. ADO.NET has significant changes and has hardly any resemblence
to ADO.

I suggest that you bind objects to a data table instead of an array
because DataTables provide much more rich functionality such as Sorting,
Views, etc. Also, when binding to a DataTable to a control, you can
easily specify the displaymember and valuemember columns. I believe if
you want to specify displaymember/valuemember columns with an array you
need to create a new class object and that takes much more code.

Arrays are probably easier on memory, but the advantages of the datatable
are definately worth the tradeoff in my mind.

--
Lucas Tam (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/
Nov 20 '05 #7
Thanks people - appreciate the responses and help.
Sean

"What-a-Tool" <Fr***********************@cox.net> wrote in message
news:bD69b.60484$Zw4.56385@lakeread03...
I have an array (2 Dimensional) which has been filled from a text file and
want to load
these several hundred fields into my db, which consists of 3 tables(each of which will be receiving a portion of this data)
I also want to be able to do the reverse > load my db into an array for
processing into a report.

I've worked with several textbook examples of ADO.Net programs to manipulate data within an Access db, but I haven't found anything that covers what I am trying to do now, other than a few hints that yes, a dataset can be bound to an array.

Can anyone give me a hint as to how to go about doing this?Using ADO.Net, as mentioned above.

Nov 20 '05 #8
Easier is a Collection.

with regards,
J.V.Ravichandran
- http://www.geocities.com/
jvravichandran
- http://www.411asp.net/func/search?
qry=Ravichandran+J.V.&cob=aspnetpro
- http://www.southasianoutlook.com
- http://www.MSDNAA.Net
- http://www.csharphelp.com
- http://www.poetry.com/Publications/
display.asp?ID=P3966388&BN=999&PN=2
- Or, just search on "J.V.Ravichandran"
at http://www.Google.com

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 20 '05 #9

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

Similar topics

0
by: David Steward | last post by:
When looking at the help files for datagrid I see a lot of information for how to data bind the datagrid to a database. The help information mentions that data binding can be done also to an...
4
by: Alan Silver | last post by:
Hello, I'm trying to use an ArrayList to do data binding, but am getting an error I don't understand. I posted this in another thread, but that was all confused with various other problems,...
0
by: Larry Serflaten | last post by:
I am not sure how many are aware of this sort of data binding, but as it is new to many (classic) VB developers I thought I would post this once just to let people know of its availablility. ...
2
by: mark | last post by:
I understand that writing programs with option strict on is the best way to obtain stable applications. I have also found the applications to run much faster. Option strict on disallows late...
30
by: lgbjr | last post by:
hi All, I've decided to use Options Strict ON in one of my apps and now I'm trying to fix a late binding issue. I have 5 integer arrays: dim IA1(500), IA2(500), IA3(500), IA4(500), IA5(500) as...
4
by: kin | last post by:
After a I read Walkthrough: Connecting to Data in Objects (http://msdn2.microsoft.com/en-us/library/ms171892.aspx#Mtps_DropDownFilterText). I still have project on that. My School project...
1
by: A. Spiehler | last post by:
I'm trying to fill a listBox control with string members from an array of objects. I think using data binding is supposed to be the easiest way to do this. I've never used data binding before and...
9
by: Miro | last post by:
VB 2003 and Im still new to vb, so i hope i can explain this as best I can. I have a variable defined as such: ( simple example ) Dim AVariableOfSorts(,) As Object = _ { _ {"Last", "String",...
3
by: kevinwolfe | last post by:
Hi all. I'd like any suggestions on how I can get my data set (not a DataSet) bound to a couple of controls on a form. Let me start by describing what my data looks like. Each entry correlates...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...
1
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
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...
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: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.