private void button1_Click(object sender, EventArgs e) { Form_ordenes orde = new Form_ordenes(); orde.ShowDialog(); carga(); }
private void dataGridView1_CellContentDoubleClick(object sender, DataGridViewCellEventArgs e) { int selectedrowindex = dtOrdenes.SelectedCells[0].RowIndex; DataGridViewRow selectedRow = dtOrdenes.Rows[selectedrowindex]; string codigo = Convert.ToString(selectedRow.Cells["id"].Value); Form_ordenes.Id = Convert.ToInt32(codigo); Form_ordenes orde = new Form_ordenes(); orde.Show(); }