Check out example codes for "c# loop datatable rows". It will help you in understanding the concepts better.

Code Example 1

DataTable dt = new DataTable();

SqlDataAdapter adapter = new SqlDataAdapter(cmd);

adapter.Fill(dt);

foreach(DataRow row in dt.Rows)
{
    TextBox1.Text = row["ImagePath"].ToString();
}

Learn ReactJs, React Native from akashmittal.com