// Deletar cliente private void butREMOVER_Click(object sender, EventArgs e) { int IDCli = Convert.ToInt32(textBoxID.Text); CAMADAS.DAL.Clientes dalCli = new CAMADAS.DAL.Clientes(); dalCli.Delete(IDCli); dataGridView1.DataSource = ""; dataGridView1.DataSource = dalCli.Select(); }
private void btnRemover_Click(object sender, EventArgs e) { int idCliente = Convert.ToInt32(txtID.Text); CAMADAS.DAL.Clientes dalCli = new CAMADAS.DAL.Clientes(); dalCli.Delete(idCliente); dtGrvClientes.DataSource = ""; dtGrvClientes.DataSource = dalCli.Select(); }