private void BDelete_Click(object sender, EventArgs e) { id = Convert.ToInt32(tabla.CurrentRow.Cells[0].Value); Productos.deleteProduct(id); fillTable(null); }
public void fillTable(string name) { tabla.DataSource = null; tabla.Rows.Clear(); tabla.DataSource = Productos.getProduct(name); }