//第一个选项卡中“修改用户信息”的按钮点击 private void button4_Click(object sender, EventArgs e) { ModifyInfoByAdmin miba = new ModifyInfoByAdmin(dataGridView1.CurrentRow.Cells["用户名"].Value.ToString()); DialogResult dr = miba.ShowDialog(); if (dr == DialogResult.OK) { dgvGetInfo(); CellClickRefresh(); } if (dr == DialogResult.Cancel) { this.Show(); } }