Loop through datatable with CSharp
-14
Simple loop through datatable
DataTable dp= dataset1.Tables["Table1"];
foreach (DataRow da in dp.Rows)
{
MessageBox.Show(da["datacolumn"].ToString());
}



me
jamesmcm
Can
Kelmi
ysg
dannymo2
chorny
wallie
Hackdemian
impomatic
dannyboy
sundaramkumar
mattrmiller
Pio
i_kenneth
ASmith
ctiggerf
sehrgut
bertheymans
SCoon
Semper Gumby
Not only would it be a user nightmare, if you wanted to use it for debugging then Console.WriteLine() would be better (as you wouldn't have to press enter past all the messageboxes)