private void dataGridView1_DoubleClick(object sender, EventArgs e) { UCViewOrders v = new UCViewOrders(); UCViewOrderItems vi = new UCViewOrderItems(); v.splitContainer1.Controls.Add(vi); vi.BringToFront(); vi.Dock = DockStyle.Fill; }
private void dataGridView1_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e) { UCViewOrders v = new UCViewOrders(); UCViewOrderItems vi = new UCViewOrderItems(); v.Controls.Add(vi); vi.BringToFront(); vi.Dock = DockStyle.Fill; }