PDA

Click to See Complete Forum and Search --> : [2.0] How to loop thru dataset


bnathvbdotnet
Sep 26th, 2006, 03:55 PM
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

mendhak
Sep 26th, 2006, 04:18 PM
foreach(DataRow dr in ds.Tables[0].Rows)
{
MessageBox.Show(dr[2].ToString());
}