private void button1_Click(object sender, EventArgs e) { int num = this.dataGridView1.CurrentRow.Index; //是当前活动的单元格的行的索引 parameter.RemoveAt(num); dataGridView1.DataSource = null; dataGridView1.DataSource = parameter; }