Ejemplo n.º 1
0
        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"]);
        }
Ejemplo n.º 2
0
 private void button1_Click(object sender, EventArgs e)
 {
     NorthwindDataset.EndInit();
     SqlDataAdapter1.Update(NorthwindDataset.Tables["Customers"]);
 }