private void button1_Click(object sender, EventArgs e)
{
int index = 0;
string temp = string.Format("delete 表名 where ID={0}",
dataGridView1[index, dataGridView1.SelectedCells[0].RowIndex].Value);
dataGridView1.Rows.RemoveAt(dataGridView1.SelectedCells[0].RowIndex);
}