="2") //判断权限{ this .Response.Write("<script language=javascript>alert(' 对不起,你的权限不够,不能使用修改。');</script>"); } else { this .jtkkG.EditItemIndex=e.Item.ItemIndex; //置相应列为编辑状态 this .DataGridDataBind(); //重新绑定数据源}}更新: public void DOItemUpdate( object sender, System.Web.UI.WebControls.mandEventArgs e) { Class.JiuZhi jiuzhiWH= new FoxERP_HRSA.Class.JiuZhi(); DataSet dataSet= new DataSet(); dataSet=jiuzhiWH.GetJinTieKouKuanList(yuangongZHT.Text.Trim()); int jintiekoukuanid= int .Parse(dataSet.Tables["JinTieKouKuanList"].Rows[e.Item.ItemIndex]["jintie koukuanID"].ToString()); //从数据集中取出员工 ID 更新数据源: jiuzhiWH.UpdateJinTieKouKuan(jintiekoukuanid,((TextBox)e.Item.Cells[0].Controls[0]).Text,((T extBox)e.Item.Cells[1].Controls[0]).Text,Convert.ToDecimal(((TextBox)e.Item.Cells[2].Control s[0]).Text.Trim()),