datagrid update command
-
hello i want edit row in datagrid so after clicking edit button update and cancel linkbuttons is coming what i want is after clicking update linkbutton data is not updating . iam using vs.net2003 and asp.net 1.1 iam sending code please see and give me idea
private void DataGrid1_UpdateCommand(object source, System.Web.UI.WebControls.DataGridCommandEventArgs e)
{
String connection = "uid=sa; password=sa123; database=usermanagement; server=c113";
SqlConnection con= new SqlConnection (connection);
//SqlCommand cmd=new SqlCommand ("select * from tbl_user_management
SqlDataAdapter da=new SqlDataAdapter ("select * from tbl_user_management",con);
con.Open ();
DataSet ds=new DataSet ();
da .Update(ds);
DataGrid1.EditItemIndex = -1;
DataGrid1.DataBind ();}
srinivas sri