Welcome Guest Search | Active Topics | Members | Log In | Register

Reading single field values from a dataset Options · View
Alexey Smirnov
Posted: Sunday, October 07, 2007 4:17:46 AM


Rank: Guest
Groups: Guest

Joined: 9/17/2007
Posts: 11,670
Points: -1,200
Date parsed: 07/10/2007 04:17:46
Date: Sun, 07 Oct 2007 11:17:46 -0700

On Oct 7, 7:42 pm, "Bjorn Sagbakken" <bjo-...@online.no> wrote:
> What is the best way to read single field values from a dataset? The dataset
> is populated with a customer record, showing well in a gridview. But I also
> want to read the single field values, like adress, phone, and so on.
>
> Bjorn

for example, myDataSet.Tables[0].Rows[0][0]

it gives you a value of the first colum in the first row

Bjorn Sagbakken
Posted: Sunday, October 07, 2007 9:42:14 PM


Rank: Guest
Groups: Guest

Joined: 9/17/2007
Posts: 11,670
Points: -1,200
Date parsed: 07/10/2007 21:42:14
Date: Sun, 7 Oct 2007 19:42:14 +0200

What is the best way to read single field values from a dataset? The dataset
is populated with a customer record, showing well in a gridview. But I also
want to read the single field values, like adress, phone, and so on.

Bjorn


Bjorn Sagbakken
Posted: Sunday, October 07, 2007 10:30:45 PM


Rank: Guest
Groups: Guest

Joined: 9/17/2007
Posts: 11,670
Points: -1,200
Date parsed: 07/10/2007 22:30:45
Date: Sun, 7 Oct 2007 20:30:45 +0200

"Alexey Smirnov" <alexey.smirnov@gmail.com> wrote in message
news:1191781066.196126.97750@o80g2000hse.googlegroups.com...
> On Oct 7, 7:42 pm, "Bjorn Sagbakken" <bjo-...@online.no> wrote:
>> What is the best way to read single field values from a dataset? The
>> dataset
>> is populated with a customer record, showing well in a gridview. But I
>> also
>> want to read the single field values, like adress, phone, and so on.
>>
>> Bjorn
>
> for example, myDataSet.Tables[0].Rows[0][0]
>
> it gives you a value of the first colum in the first row

Thanks a lot. That was exactly what I was looking for.

Bjørn


Users browsing this topic
Guest


Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Main Forum RSS : RSS

YAFPro Theme Created by Jaben Cargman (Tiny Gecko)
Powered by Yet Another Forum.net version 1.9.1.1 (NET v2.0) - 9/10/2007
Copyright © 2003-2006 Yet Another Forum.net. All rights reserved.
This page was generated in 0.064 seconds.