Click here to Skip to main content
15,919,121 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to pass data from a datagridview into another form. I want to allow users to be able to edit the data on this second form. I have comboboxes on the edit form and I would like them to be bound to lookup datasets. I can pass the data to the edit form easily enough but only to display the current values in the comboboxes. When I try to connect the comboboxes to their respective datasets the original value does not display which makes sense. Does anyone know how I can display the current records value in the combobox and also have the combobox connected to another dataset?
Posted

1 solution

This is reduced to a very popular question on form collaboration. I dedicated an article to answer them in a generic way: Many Questions Answered at Once — Collaboration between Windows Forms or WPF Windows[^].

It covers System.Windows.Forms and WPF, alternatives are also discussed (section 6).

—SA
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900