private void btnNuevo_Click(object sender, EventArgs e) { Form_compras.folio = "0"; Form_compras new_compra = new Form_compras(); new_compra.Owner = this; new_compra.Show(); }
private void dtCompras_CellContentDoubleClick(object sender, DataGridViewCellEventArgs e) { int selectedrowindex = dtCompras.SelectedCells[0].RowIndex; DataGridViewRow selectedRow = dtCompras.Rows[selectedrowindex]; string codigo = Convert.ToString(selectedRow.Cells["documento"].Value); Form_compras.folio = codigo; Form_compras new_compra = new Form_compras(); new_compra.Owner = this; new_compra.Show(); }