Solved

Help with creating pop up control containing a GridView

Posted on 2012-12-28
7
161 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
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 

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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Suggested Solutions

More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
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 (http://www.ecb.europa.eu/stats/exch…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

758 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now