{ int Id = Convert.ToInt32(DataList1.DataKeys[e.Item.ItemIndex].ToString()); //取得编辑行的关键字段的值 string sqlStr = "delete from S_Questions where Id="+Id; //删除 SQL 语句 SqlConnection myConn = db.GetCon(); //链接数据库 myConn.Open(); //打开数据库 SqlCommand myCmd = ...