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

Dataset question

how to assign data from a dataset to an array or other variables?
how to address data, contaning in dataset.
I know it is organized in row, but how to work with them?
Nov 21 '05 #1
4 1048
dataset.tables("tableName").Rows(rownumber)(column Number)
dataset.tables("tableName").Rows(rownumber)("Colum nName"))

dim datarow as new datarow = dataset.tables("tableName").Rows(number)
messagebox.show (datarow(columnNumber)
messagebox.show (datarow("columnName"))

Hope this helps,

Jason

On Thu, 19 Aug 2004 10:06:26 +0300, "Nikolay Petrov"
<jo******@mail.bg> wrote:
how to assign data from a dataset to an array or other variables?
how to address data, contaning in dataset.
I know it is organized in row, but how to work with them?


Nov 21 '05 #2
Hi,
Datasets contain one or more DataTables which in turn contain DataRows. To
access a specific row in a table, follow this hierarchy.

DataSet.Tables(0).Rows(0)("ColumnName") -- gives the value of column
"ColumnName" in the first row (0-based indexing) of the first table in the
given dataset.

Also, check MSDN for DataSet topic. It contains plenty of info on
manipulating/accessing datasets.

Hope this helps.

"Nikolay Petrov" <jo******@mail.bg> wrote in message
news:#E**************@TK2MSFTNGP09.phx.gbl...
how to assign data from a dataset to an array or other variables?
how to address data, contaning in dataset.
I know it is organized in row, but how to work with them?

Nov 21 '05 #3
Thanks guys
I am sure that MSDN contains all the info
Just i don't have the time ;-)

tnx again

Nov 21 '05 #4
Hi Shiva,
DataSet.Tables(0).Rows(0)("ColumnName") -- gives the value of column
"ColumnName" in the first row (0-based indexing) of the first table in the
given dataset.

I am sure you know this, however I think that this can give
misunderstandings.

In my opinion it has to be "gives the value of Item". That because the
distinct between a column and an item in a datatable is for a lot of newbies
mostly difficult to see.

Only for the next time.

:-)

Cor
Nov 21 '05 #5

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

Similar topics

3
by: Simon Harvey | last post by:
Hi everyone, I was wondering if it is possible, to use SQL to return more than one table at a time into a dataset. I only know the basics of SQL and so I'm not sure if I'm just asking a stupid...
2
by: JS | last post by:
I'm trying to create a data layer and having problems returning a DataSet from my code that's in a class module. Please forgive me. I'm new to C# (VB'er). I decided to create my data layer in...
2
by: Simon Harvey | last post by:
Hi everyone, I was wondering if it is possible, to use SQL to return more than one table at a time into a dataset. I only know the basics of SQL and so I'm not sure if I'm just asking a stupid...
0
by: Mike | last post by:
Hi, I am trying to solve a problem with a DataSet issue I am having. In my app the user selects certain options and based on those options it goes out to the db to get data based on those...
15
by: JIM.H. | last post by:
Hello, Can I send a dataset as a parameter into stored procedure and import data to a table in the stored procedure? Thanks, Jim.
2
by: Jeff Brown | last post by:
OK i have came to the conclusion that since this app will be run on multiple computers that loading a complete database and then updating on exit is a moot point. I have tried several ideas...
4
by: markerussell | last post by:
I have a question, in that if i have an application is it better to have one dataset per data adapter, ie daCustomerTable -> dsCustomer, daOrders -> dsOrders etc. or to say have a couple of dataset...
22
by: Arne | last post by:
How do I pass a dataset to a webservices? I need to submit a shoppingcart from a pocket PC to a webservice. What is the right datatype? II have tried dataset as a datatype, but I can't get it to...
2
by: JT | last post by:
I have an SQL database with one table in it. I want to load the table into a DataSet, add new records to the DataSet, then commit the changes back to the database. Using C#.NET, the following...
3
by: Ken Fine | last post by:
This is a question that someone familiar with ASP.NET and ADO.NET DataSets and DataTables should be able to answer fairly easily. The basic question is how I can efficiently match data from one...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.