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

Home Posts Topics Members FAQ

How convert dataset to arraylist?

I have 1 table in a dataset. How can I easily convert it to an arraylist
(with structure arraylist elements)?
Nov 21 '05 #1
3 7088
"VB Programmer" <xD**********@Dont.com> wrote in
news:#3**************@TK2MSFTNGP10.phx.gbl:
I have 1 table in a dataset. How can I easily convert it to an
arraylist (with structure arraylist elements)?


What type do you want to store in the arraylist? Why do you want to convert it to an arraylist.
--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"

Empower ASP.NET with IntraWeb
http://www.atozed.com/IntraWeb/
Nov 21 '05 #2
"VB Programmer" <xD**********@Dont.com> schrieb
I have 1 table in a dataset. How can I easily convert it to an
arraylist (with structure arraylist elements)?


I don't know what you mean by "structure arraylist elements", but... :

al.AddRange(ds.Tables("mytable").Select)
Armin
Nov 21 '05 #3
VB Programer

dim ar as arraylist
For each dt as datatable in ds.tables
ar.add(dt)
Next

This can have sense when you want to remove some datatables from a a dataset
and place them originaly again in another one.

However as Kudzu said, what is your goal?

I hope this gives an idea

Cor
Nov 21 '05 #4

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

Similar topics

4
by: hs | last post by:
Hi I am serializing a dataset using a binary formatter as follows: IFormatter formater = new BinaryFormatter(); formatter.Serialize(stream, ds); // ds=DataSet, stream=MemoryStream .... DataSet...
5
by: Joachim | last post by:
When executing the following code ArrayList list = new ArrayList(); try { //Make sure connection is open if (!connection.State.ToString().Equals("Open")) connection.Open(); DataSet list =...
13
by: Hrvoje Voda | last post by:
How to put a specified dataset table into an array list ? Hrcko
2
by: mimi | last post by:
I would like to convert an arraylist to dataset or datatable so that I can filter or make a select distinct from it. How to do it? Can someone show me the syntax? Thanks
0
by: Rizky Kurniawan | last post by:
Hi geek, Please help.... I've value let say textbox, then i would put that value on datagrid I've option from which I do post to the grid. I store textbox value first to ArrayList and then...
3
by: serge calderara | last post by:
Dear all, Does anyone know how to bind a System.Collection.ArraysList object to a Dataset ? Thanks for your reply Regards Serge
1
by: Joseph | last post by:
Hi all, I know that you can convert a Dataset into an Arraylist, I was wondering if it is possible to do the opposite - Convert an Arraylist to a Dataset? If so, how do you do this? An example...
2
by: Mr. Arnold | last post by:
I am working a C# project that uses what's in the subject. I kind of have the basics down on reading the table data. I don't use the above methods of data access or persistence, but I am stuck...
1
by: Probi | last post by:
HI, I have a DropDownList populated from database I use the following code OracleDataAdapter ad2 = new OracleDataAdapter(cmd2, connection); DataSet ds2 = new DataSet(); ad2.Fill(ds2); ...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...
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 ...

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.