Home All Groups Group Topic Archive Search About

Navigating through a dataset

Author
6 Jan 2006 4:06 AM
Ant
Hi,
Is there a way to navigate through the rows of a dataset without having to
bind to a control? (at a guess, something like .Current +1)

Thanks for any ideas

Ant

Author
6 Jan 2006 6:29 AM
Norman Yuan
foreach (DataRow r in MyDataSet.Tables[0].Rows)
{
    //do something  with the DtaaRow: r
}

Show quote
"Ant" <A**@discussions.microsoft.com> wrote in message
news:C22690FC-DC0A-40D1-9E10-D4D55B17E012@microsoft.com...
> Hi,
> Is there a way to navigate through the rows of a dataset without having to
> bind to a control? (at a guess, something like .Current +1)
>
> Thanks for any ideas
>
> Ant

AddThis Social Bookmark Button