Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# loop datatable rows

DataTable dt = new DataTable();

SqlDataAdapter adapter = new SqlDataAdapter(cmd);

adapter.Fill(dt);

foreach(DataRow row in dt.Rows)
{
    TextBox1.Text = row["ImagePath"].ToString();
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #loop #datatable #rows
ADD COMMENT
Topic
Name
5+4 =