UserController objCont=new UserController();
DataTable dt = new DataTable();
//bind all values in dt
dt=objCont.GetAllRecords();
DataRow[] rows = dt.Select();
foreach (DataRow dr in rows)
{
string name= dr[“Name”];
}
Use of Data Row in Data Table in Asp.net using C#
