private void button6_Click(object sender, EventArgs e) { dataGridView1.Focus(); if (dataGridView1.RowCount > 1) { string res = getSelectRow(); Add_Alter add = new Add_Alter(res); add.ShowDialog(); } else { MessageBox.Show("没有选中的行!"); } }
private void button5_Click(object sender, EventArgs e) { Add_Alter addat = new Add_Alter(); addat.ShowDialog(); }