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