如果能够实现datagrid模板列点击编辑列时能够实现修改,必须有第2句代码
1 SqlDataAdapter da=new SqlDataAdapter("select au_id,au_lname,city,xinbie from authors",myconnection);
2 da.SelectCommand.CommandType=CommandType.Text;
1 SqlDataAdapter da=new SqlDataAdapter("select au_id,au_lname,city,xinbie from authors",myconnection);
2 da.SelectCommand.CommandType=CommandType.Text;

浙公网安备 33010602011771号