Solved

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

Posted on 2008-10-12
2
235 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 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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

705 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

19 Experts available now in Live!

Get 1:1 Help Now