Solved

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

Posted on 2008-10-12
2
242 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
[X]
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
2 Comments
 
LVL 28

Accepted Solution

by:
strickdd earned 250 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

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

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:…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

738 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