someone suggested me this which seems quite straight forward
I would use the method of showing the add/edit window(s) as dialog forms
from the main form. This will allow you to instantiate the add/edit window
from the same form as your datagrid/datasource. You can then get the current
row from the datasource and use it as the datasource for databinding to
controls on the add/edit form. After the user is finished with the add/edit
form and they click ok, you can call update on your dataadapter(s). This
method makes it easy because you can do everything from a single routine. You
don't really need to pass a lot of references between forms; just set and
read the property values of the controls on the add/edit form.
"Cor Ligthert" wrote:
Job,
When you ask this kind of question in this newsgroup, tell than next time if
you use C# or VBNet. Althoug a language newsgroup is in my opinion more
proper. It can in VBNet be something as
Dim frm as myPopupForm
frm.datafromGrid = DataFromGrid
frm.showdialog
WhateverIWantfromMyPopupForm = frm.WhateverIWant
frm.dispose
I hope this helps,
Cor