private void button1_Click(object sender, EventArgs e) { frmagClientecs ventana = new frmagClientecs(); ventana.ShowDialog(); cargarGrilla(); }
private void btnModificar_Click(object sender, EventArgs e) { try { frmagClientecs modificar = new frmagClientecs((Cliente)dgvClientes.CurrentRow.DataBoundItem); modificar.ShowDialog(); } catch (Exception ex) { MessageBox.Show(ex.ToString()); } }