hi,
I've tried to update my database using my datagrid but there is no
change. here is the code I'm using:
private void Update_dataGrid (object source,
System.Web.UI.W ebControls.Data GridCommandEven tArgs e)
{
System.Web.UI.W ebControls.Text Box cstaff=new
System.Web.UI.W ebControls.Text Box();
cstaff=(System. Web.UI.WebContr ols.TextBox)e.I tem.Cells[1].Controls[0];
SqlCommand myCommand=new SqlCommand("upd ate isp_email.staff set
stafflevel=@sta fflevel where id=id",con);
myCommand.Param eters.Add(new
SqlParameter("@ stafflevel",Sql DbType.VarChar, 45));
myCommand.Param eters["@staffleve l"].Value=cstaff.T ext;
con.Open();
myCommand.Execu teNonQuery();
con.Close();
dgupdate.EditIt emIndex=-1;
BindData();
}
ould some one help me?