Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

How to create reusable dialog lookup (inherited) form for a gridview

Posted on 2008-10-12
2
Medium Priority
?
253 Views
Last Modified: 2013-12-17
I have an application in C# 2005, using winforms, basically a rewrite of a VB application.  Most of the forms have datagrids, and the database is Sybase, which requires a non-simple method of attaching to the database using my employer's custom interfaces.  The grids are populated using existing stored procedures returning a datatable object.  I can populate the grids fine but I need a simple pop-up box that I can reuse on these forms that will search for any existing rowvalue in the grid's datatable.  I would think that this is what form inheritance is designed for, but I've never used it.  Any ideas/help is much appreciated.
0
Comment
Question by:ftmcnally
2 Comments
 
LVL 28

Accepted Solution

by:
strickdd earned 750 total points
ID: 22702091
You can create another form object in your solution. Then you can use your grid view form to open a copy of this new dialogue form. With that, you will have a Parent-Child relationship and can pass information via this.Parent()
0
 

Author Comment

by:ftmcnally
ID: 22707289
Thanks, will give it a try
0

Featured Post

Independent Software Vendors: 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

For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
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…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

916 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