private void button1_Click(object sender, EventArgs e) { if (Grilla.CurrentRow == null) { Mensaje("Debe seleccionar un registro"); return; } Principal.CodigoPrincipalAbm = Grilla.CurrentRow.Cells[0].Value.ToString(); FrmVenta frm = new FrmVenta(); frm.ShowDialog(); }
private void button1_Click(object sender, EventArgs e) { if (Grilla.CurrentRow == null) { Mensaje("Debe seleccionar un registro"); return; } else { Principal.CodigodePresupuesto = Convert.ToInt32(Grilla.CurrentRow.Cells[0].Value.ToString()); FrmVenta frm = new FrmVenta(); frm.Show(); this.Close(); } }