473,406 Members | 2,698 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Implementing Access-like search

Hello:

I have a Form (Form A) that has a datagrid.
When the user chooses to find a value, I open up a second form (Form B) (not
a dialog), wherein the user enters the search string, direction etc. When he
clicks on search, it executes a Search method on Form B. So, now both the
windows are shown and the user can continue the search and when successful,
the row pointer is changed accordingly.

I have no problem doing it. But I don't know how to make this generic so it
can be used in any Form that has a grid and needs this functionality.

So, within FormB, the Search function is coded as:

FormA.Search

But when generic, FormA could be any form that provides this functionality.
How can I generalize it?

Thanks.

venkat
Nov 21 '05 #1
1 992
Vvenk,

In my opinion is this almost the same question as you have sand later,
please do not do that, it makes it almost impossible to get a good
discussion about your problem and therefore useless in my opinion to answer
you.

When someone knows the answer he will answer you here.

Because of the sentence above I do not answer it here.

Cor

"vvenk" <vv***@discussions.microsoft.com>
...
Hello:

I have a Form (Form A) that has a datagrid.
When the user chooses to find a value, I open up a second form (Form B)
(not
a dialog), wherein the user enters the search string, direction etc. When
he
clicks on search, it executes a Search method on Form B. So, now both the
windows are shown and the user can continue the search and when
successful,
the row pointer is changed accordingly.

I have no problem doing it. But I don't know how to make this generic so
it
can be used in any Form that has a grid and needs this functionality.

So, within FormB, the Search function is coded as:

FormA.Search

But when generic, FormA could be any form that provides this
functionality.
How can I generalize it?

Thanks.

venkat

Nov 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Yoandy Rodriguez | last post by:
I'm developing a J2EE aplication and the project leader told me to investigate about the Data Access Object design pattern. I did some research at Sun's blueprints for the enterprise site but there...
2
by: cppaddict | last post by:
I have a design question which I am posting here because the implementation will be in C++ and I think there may be C++ specific language constructs (eg, friends) that might be relevant to the...
19
by: chris | last post by:
Hello, I've recently been trying to understand the various structures supplied by c++, and the one I find most confusing is deque. One quick question about this. It seems most implementations...
1
by: Devon | last post by:
Hi, I'm just getting my feet wet with C# and need some help with interface implementation. I want to create a collection of various objects that implement a certain interface (i.e. IMyInterface)....
8
by: Mark Neilson | last post by:
1. What is the best way to make a single instance of my top level class (DLL) internally available to all other members of the assembly? The top level object is where all other access is made in...
4
by: Frank J. Reashore | last post by:
Hello Everyone, I am implementing a simple interface in C# using Visual Studio .net and was quite surprised to discover that the C# compiler does NOT complain if a method on the interface is not...
4
by: phl | last post by:
hi, My question is: 1. To avoid possible memory leaks, when you use this pattern, after you have dealth with the unmanaged resources and before you take your object off the finalize queue,...
1
by: Rasheed | last post by:
We are building a smart client application (.NET 2.0) which uses Web Services to access the business objects. Services: The Web Services have been secured by brokered authentication using X509...
2
by: Sridhar | last post by:
Hi, I am trying to implement sql transactions. But I am not knowing how to do that. I created a data access layer which contains methods to select/insert/update tables in a database. I have also...
6
by: Raj Wall | last post by:
Hi, I am trying to implement the IEqualityComparer interface for a struct so I can use it as the Key for a Dictionary. My struct declaration has: public struct Ring : IEqualityComparer {...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.