Help with creating pop up control containing a GridView

vcharles
vcharles used Ask the Experts™
on
How do I create a popup control which contains GridViewB when I click on a row in GridViewA.
I am using VB.NET.

Thanks,

Victor
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Most Valuable Expert 2012
Top Expert 2014
Commented:
Create a form with a DataGridView on it and a public variable. Then on Form containing GridViewA, get the selected ID (primary key) value of the row and show second form. Pass that ID into the public variable and then use that to load the GridViewB.

Author

Commented:
Can you please send me an example?
Most Valuable Expert 2012
Top Expert 2014

Commented:
Its not a simple code segment that I can send. You need to do little bits in multiple places.
PMI ACP® Project Management

Prepare for the PMI Agile Certified Practitioner (PMI-ACP)® exam, which formally recognizes your knowledge of agile principles and your skill with agile techniques.

Author

Commented:
I understand. Thanks.

Author

Commented:
Forgot to ask, how do i make the form modal? don't see that property.
Most Valuable Expert 2012
Top Expert 2014

Commented:
Use the ShowDialog method instead of Show.

You may want to StartPosition to FormStartPosition.CenterScreen before ShowDialog

Author

Commented:
Thank You.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial