private void buttonEditar_Click(object sender, EventArgs e)
 {
     this.Hide();
     EditarProducto ac = new EditarProducto(grid) { Owner = this };
     ac.Owner = this;
     ac.StartPosition = FormStartPosition.CenterParent;
     ac.ShowDialog();
 }
 private void buttonEditar_Click(object sender, EventArgs e)
 {
     EditarProducto editar = new EditarProducto(dataGridViewProducto) { Owner = this };
     editar.Owner = this;
     editar.Deactivate += new EventHandler(recargarGrid);
     editar.StartPosition = FormStartPosition.CenterParent;
     editar.ShowDialog();
 }