private void mnuGridNuevo_Click(object sender, EventArgs e) { frmProductEdicion frm = new frmProductEdicion("0", "New"); frm.ShowDialog(); if (frm.DialogResult == System.Windows.Forms.DialogResult.OK) { // Refrescar grilla btnFilter_Click(sender, e); } }
private void mnuGridModificar_Click(object sender, EventArgs e) { string strProductId = grdData.Selected.Rows[0].Cells[0].Value.ToString(); frmProductEdicion frm = new frmProductEdicion(strProductId, "Edit"); frm.ShowDialog(); if (frm.DialogResult == System.Windows.Forms.DialogResult.OK) { // Refrescar grilla btnFilter_Click(sender, e); } }