simple question about exchanging values between two forms

  • Thread starter Thread starter Sajid
  • Start date Start date
S

Sajid

Hello!!!

I have a form called "Main", which has a datagrid. Now what I want to
do is to allow a user to select anyone of the rows on the datagrid (on
the "Main" form) and then click a button to get another form which has
a listbox with list of values. When a user clicks on anyone of the
values from the listbox that must be copied back to the selected Row
on the DataGrid (on the "Main" form). How can I do that. Your kind
help will be really appreciated.

cheers

SY
 
* (e-mail address removed) (Sajid) scripsit:
I have a form called "Main", which has a datagrid. Now what I want to
do is to allow a user to select anyone of the rows on the datagrid (on
the "Main" form) and then click a button to get another form which has
a listbox with list of values. When a user clicks on anyone of the
values from the listbox that must be copied back to the selected Row
on the DataGrid (on the "Main" form). How can I do that. Your kind
help will be really appreciated.

Add a property/properties to your 2nd form, set these properties before
showing the form and write back the results after the form is closed.
 
Back
Top