Loop through datatable with CSharp





-14
Date Submitted Sat. Jul. 15th, 2006 10:32 PM
Revision 1 of 1
Helper eriveraa
Tags .Net | CSharp
Comments 3 comments
Simple loop through datatable

DataTable dp= dataset1.Tables["Table1"];

foreach (DataRow da in dp.Rows)
{
        MessageBox.Show(da["datacolumn"].ToString());

}
 

Lalo Rivera

Comments

Comments Why loop
Mon. Oct. 2nd, 2006 6:11 PM    Beginner bjcogdill
Comments Purpose?
Fri. May. 25th, 2007 7:55 AM    Beginner Jax
Comments Bad Style
Tue. Aug. 29th, 2006 6:35 AM    Newbie logancautrell

Voting