Dear All,
I have struck up with some probs, I m using c#.net (VS2005)
I have a form for employee details which is having 65 fields, from
there i'm calling a child window with a data grid which will display
only emp_name , id designation , my requirement is I need to fill
all fields in the parent form by clicking one value from the data
grid (in child form) .
(this im using for edit/delete purpose)
Please help me
Thanks
Nau
Jeff Gaines - 12 Mar 2007 11:15 GMT
On 12/03/2007 in message
<1173690548.517937.325850@c51g2000cwc.googlegroups.com>
>Dear All,
>I have struck up with some probs, I m using c#.net (VS2005)
[quoted text clipped - 5 lines]
>
>(this im using for edit/delete purpose)
Does each record have a unique identifier, e.g. a record number?
If so you can set up a public field in the child form, set it to the
record number when OK is clicked (or -1 for no record/cancel) and then
access that from your main form when the child form is closed.

Signature
Jeff Gaines
Ciaran O''Donnell - 12 Mar 2007 11:17 GMT
This is were businses objects prove valuable in application development. In
my aqpplication I would have an Employee businiess object which would be what
was selected in the grid. This I could expose the selectedEmployee as a
property of the child form and return it to the parent form as a single value.
Try looking at something like CSLA.NET which is a business object framework
developed by Rocky Lhotka. http://www.lhotka.net/
HTH

Signature
Ciaran O''Donnell
http://wannabedeveloper.spaces.live.com
> Dear All,
> I have struck up with some probs, I m using c#.net (VS2005)
[quoted text clipped - 9 lines]
> Thanks
> Nau
RobinS - 13 Mar 2007 06:27 GMT
You could add a property to your parent window, and set it when you close
your child window.
Robin S.
------------------
> Dear All,
> I have struck up with some probs, I m using c#.net (VS2005)
[quoted text clipped - 9 lines]
> Thanks
> Nau