Solved

Help with creating pop up control containing a GridView

Posted on 2012-12-28
7
164 Views
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.

Thanks,

Victor
0
Comment
Question by:vcharles
  • 4
  • 3
7 Comments
 
LVL 83

Accepted Solution

by:
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.
0
 

Author Comment

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

Expert Comment

by:CodeCruiser
ID: 38728335
Its not a simple code segment that I can send. You need to do little bits in multiple places.
0
MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

 

Author Comment

by:vcharles
ID: 38728348
I understand. Thanks.
0
 

Author Comment

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

Expert Comment

by:CodeCruiser
ID: 38728396
Use the ShowDialog method instead of Show.

You may want to StartPosition to FormStartPosition.CenterScreen before ShowDialog
0
 

Author Comment

by:vcharles
ID: 38728403
Thank You.
0

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

This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

821 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