Use of Data Row in Data Table in Asp.net using C#

Use of Data Row in Data Table in Asp.net using C#

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”];
}

Comments

No comments yet. Why don’t you start the discussion?

Leave a Reply