Sor keneth
New Member
I want to loop through a datatable, but I suck at that. What is a simple "looping" function for this? i.e. <BR><BR>For each row in the darn datatable<BR> Do this....<BR>Next.<BR><BR>I don't want to use the repeater, datalist or data grid function. Please help me.<BR>in C#...<BR><BR>foreach (DataRow row in DataTable)<BR>{<BR> //do your thang!<BR>}<BR><BR>I'm not sure as I haven't used vb in a long time and have NEVER used vb.net....but here's a shot<BR><BR>For Each row In DataTable<BR> 'do your thang in VB.net!<BR>NextThanks. I decided to use a DataReader instead. I appreciate your help.