//双击Grid的列,弹出修改框 protected void GridDBClick(object sender, DirectEventArgs e) { userinfoMgr mgr = new userinfoMgr(); userinfo user = mgr.FindById_userinfo(int.Parse(e.ExtraParams["id"])); if (user != null) { TxtUserName.Text = user.username; TxtTel.Text = user.telephone; TxtEmail.Text = user.email; cboRole.Value = user.roleid; TxtAddress.Text = user.address; Hid.Text = user.userid.ToString(); WinUser.Show(); } }