Friday, July 07, 2006


Monday, July 10, 2006 1:03:24 AM (GMT Standard Time, UTC+00:00)
Hi Brian,

Thanks for the demos.
One concept I have been trying hard to understand is binding of combobox controls to their parent object's Foreign Key(s).

For example: if I have a patientBindingSource and that has a FK for Gender, how does one hook up the genderBindingSource (used by a comboBox) so that changes in the selected gender are picked up by the patientBindingSource, and can subsequently be saved?

Cheers,

John

John
Monday, July 10, 2006 11:40:29 AM (GMT Standard Time, UTC+00:00)
Hi John,
You hook up the BindingSources independently and the ComboBox just does the right thing. See this post for a walkthrough:
http://www.softinsight.com/bnoyes/PermaLink.aspx?guid=54fc20d7-e1ad-407b-893b-11db0f3e7a2b

And this one if you want to do it in a DataGridView:
http://www.softinsight.com/bnoyes/PermaLink.aspx?guid=d5dccf90-32a4-41e0-88a2-12e8898e6224
Brian
Comments are closed.



















Sign In
Copyright © 2006-2007 Brian Noyes. All rights reserved.
designed by NUKEATION STUDIOS