Answers for "c# loop through datatable"

C#
3

c# loop through datatable

DataTable dt = new DataTable();

SqlDataAdapter adapter = new SqlDataAdapter(cmd);

adapter.Fill(dt);

foreach(DataRow row in dt.Rows)
{
    TextBox1.Text = row["ImagePath"].ToString();
}
Posted by: Guest on June-06-2020

C# Answers by Framework

Browse Popular Code Answers by Language