public void wh() { entryhw frm = new entryhw(); frm.MdiParent = this; frm.Show(); }
private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { DataGridViewRow act = dataGridView1.Rows[e.RowIndex]; string order = act.Cells["Orden"].Value.ToString(); string query = "update Order_Master set UDFKEY_10 = '" + dataentry.Text + "' where ORDER_10 = '" + order + "'"; c.command3(query); if (c.valor == "si") { string query2 = "select UDFREF_10 from Order_Master where ORDER_10 = '" + order + "'"; c.fill_txt(txtpo, query2, "UDFREF_10"); MessageBox.Show("El PO de la caja es el siguiente" + txtpo.Text + ". Por favor coloquelo en el lugar adecuado.", "Caja aceptada"); c.valor = ""; txtupc.Clear(); txtpartid.Clear(); entryhw frm = new entryhw(); frm.MdiParent = this.MdiParent; frm.Show(); this.Close(); //DataTable dt = (DataTable)dataGridView1.DataSource; //dt.Clear(); //entryhw_Load("",e); } }