How To Data Table Edit

Jayakumars
Posted by Jayakumars under ASP.NET AJAX category on | Points: 40 | Views : 854
Data Table Edit
======================
public DataTable dtBind()
{
DataTable dty = new DataTable();
sqlcon.Open();
da = new SqlDataAdapter("Select * from [AreaTable]", sqlcon);
da.Fill(dty);
return dty;
}
protected void Page_Load(object sender, EventArgs e)
{
DataTable dt1 = new DataTable();
dt1 = dtBind();
dt1.Rows[0].BeginEdit();
dt1.Rows[0][1] = "JehovahJireh";
dt1.Rows[0].EndEdit();
}

Comments or Responses

Login to post response