?
Solved

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

Posted on 2008-10-12
2
Medium Priority
?
250 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 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…

719 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