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.
Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.


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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
T-SQL and CLR parameter strings 9 63
c#, case, if 4 37
I need help writing Unit Tests for my ASP.Net MVC application 5 40
Read top line from CSV file 14 58
Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit If you want to manage em…
In a recent question ( here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

734 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