删除当前选定的行:用了两种方法:
int a;
a = this.dataGrid1.CurrentRow.Index;
1. dataGrid1.BindingContext[dataGrid1.DataSource, dataGridView1.DataMember].RemoveAt(a);
2.
db1DataSet.Tables[0].Rows[a].Delete();
tbl1TableAdapter.Update(db1DataSet);
db1DataSet.AcceptChanges();