Help with creating pop up control containing a GridView

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
vcharlesAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
CodeCruiserConnect With a Mentor 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.
0
 
vcharlesAuthor Commented:
Can you please send me an example?
0
 
CodeCruiserCommented:
Its not a simple code segment that I can send. You need to do little bits in multiple places.
0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
vcharlesAuthor Commented:
I understand. Thanks.
0
 
vcharlesAuthor Commented:
Forgot to ask, how do i make the form modal? don't see that property.
0
 
CodeCruiserCommented:
Use the ShowDialog method instead of Show.

You may want to StartPosition to FormStartPosition.CenterScreen before ShowDialog
0
 
vcharlesAuthor Commented:
Thank You.
0
All Courses

From novice to tech pro — start learning today.