winform 新增后提示 是否再 新增
frm标准编辑 frm = new frm标准编辑(); if (frm.ShowDialog() == DialogResult.OK) { BindData(); if (MsgBox.Confirm("提示", "是否继续添加!")) { tsb新增按钮_Click(null, null); } }
frm.row = DataGridViewHandleHelper.Get_SelectedRow(dgv); int index = dgv.CurrentRow.Index; int r = dgv.FirstDisplayedScrollingRowIndex; if (frm.ShowDialog() == DialogResult.OK) { MsgBox.Info("审核成功!"); btn查询_Click(null, null); dgv.Rows[index].Selected = true; dgv.FirstDisplayedScrollingRowIndex = r; }