Help with creating pop up control containing a GridView

Posted on 2012-12-28
Last Modified: 2012-12-28
How do I create a popup control which contains GridViewB when I click on a row in GridViewA.
I am using VB.NET.


Question by:vcharles
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
LVL 83

Accepted Solution

CodeCruiser earned 500 total points
ID: 38728314
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 Comment

ID: 38728320
Can you please send me an example?
LVL 83

Expert Comment

ID: 38728335
Its not a simple code segment that I can send. You need to do little bits in multiple places.
Get Actionable Data from Your Monitoring Solution

Your communication platform is only as good as the relevance of the information you send. Ensure your alerts get to the right people every time with actionable responses. Create escalation rules that ensure everyone follows the process and nothing is left to chance.


Author Comment

ID: 38728348
I understand. Thanks.

Author Comment

ID: 38728360
Forgot to ask, how do i make the form modal? don't see that property.
LVL 83

Expert Comment

ID: 38728396
Use the ShowDialog method instead of Show.

You may want to StartPosition to FormStartPosition.CenterScreen before ShowDialog

Author Comment

ID: 38728403
Thank You.

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In my previous article ( we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…

717 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question