Results 1 to 2 of 2

Thread: [2.0] How to loop thru dataset

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Oct 2003
    Posts
    436

    [2.0] How to loop thru dataset

    I have executed an oracle stored proc and assigned the resultset to a dataset.

    How can I go thru each record in the dataset ?

    thanks

    nath

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: [2.0] How to loop thru dataset

    Code:
    foreach(DataRow dr in ds.Tables[0].Rows)
    {
    MessageBox.Show(dr[2].ToString());
    }

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width