Solved

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

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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Simple Injector with Web Service 4 41
How to join on ID, with prefix? 15 59
Service Controller 1 23
Please explain the parts of these 2 LINQ expressions 3 31
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…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

777 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