private void button3_Click(object sender, EventArgs e) { NorthwindDataset.EndInit(); var index = dataGridView1.CurrentRow.Index; NorthwindDataset.Tables["Customers"].Rows[index].Delete(); SqlDataAdapter1.Update(NorthwindDataset.Tables["Customers"]); }
private void button1_Click(object sender, EventArgs e) { NorthwindDataset.EndInit(); SqlDataAdapter1.Update(NorthwindDataset.Tables["Customers"]); }