PC Review


Reply
Thread Tools Rate Thread

Dataset question

 
 
Nikolay Petrov
Guest
Posts: n/a
 
      19th Aug 2004
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?


 
Reply With Quote
 
 
 
 
Shiva
Guest
Posts: n/a
 
      19th Aug 2004
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" <(E-Mail Removed)> wrote in message
news:#(E-Mail Removed)...
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?



 
Reply With Quote
 
Jason L James
Guest
Posts: n/a
 
      19th Aug 2004
dataset.tables("tableName").Rows(rownumber)(columnNumber)
dataset.tables("tableName").Rows(rownumber)("ColumnName"))

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"
<(E-Mail Removed)> 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?
>
>


 
Reply With Quote
 
Nikolay Petrov
Guest
Posts: n/a
 
      19th Aug 2004
Thanks guys
I am sure that MSDN contains all the info
Just i don't have the time ;-)

tnx again



 
Reply With Quote
 
Cor Ligthert
Guest
Posts: n/a
 
      19th Aug 2004
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


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
dataset question Eric Effer Microsoft ASP .NET 2 22nd Jan 2007 07:12 AM
Dataset question =?Utf-8?B?QmFzIEhhbWVy?= Microsoft C# .NET 4 24th Oct 2005 09:36 PM
Dataset question VB Programmer Microsoft ADO .NET 2 4th Jun 2004 05:49 AM
DataSet question Horatiu Ripa Microsoft Dot NET 0 28th Nov 2003 10:25 AM
DataSet Question Larson Microsoft ADO .NET 1 31st Oct 2003 04:06 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:01 AM.