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