R
Rich
Hello,
Using VS 2008 to create a Windows app, I need to bind a combo box on a form
in my main app to a dataset I created in my business logic layer.
The business logic is in a separate project under the same solution as thge
main app.
I can't seem to find any way of getting the combo box bound to the dataset
to do a simple lookup. I have tried adding a project datasource to get a
reference to the dataset, and can even use the designer to select which
display and value properties to bind to. But when I run the app no binding
happens and the combo is blank.
If I create the same datasource within the main app project, it binds
perfectly. Incidentally, when binding in this way (dataset in same project)
I get a tableadapter and dataset appear on the form as well as the
bindingsource component. When binding to an object in the other project, I
just get a bindingsource on the form.
Any suggestions greatly appreciated!
PS. I'm looking for a designer based solution, as I already have code based
workarounds - thanks.
--
Rich
http://www.badangling.com
....talking pollocks since 1996
Using VS 2008 to create a Windows app, I need to bind a combo box on a form
in my main app to a dataset I created in my business logic layer.
The business logic is in a separate project under the same solution as thge
main app.
I can't seem to find any way of getting the combo box bound to the dataset
to do a simple lookup. I have tried adding a project datasource to get a
reference to the dataset, and can even use the designer to select which
display and value properties to bind to. But when I run the app no binding
happens and the combo is blank.
If I create the same datasource within the main app project, it binds
perfectly. Incidentally, when binding in this way (dataset in same project)
I get a tableadapter and dataset appear on the form as well as the
bindingsource component. When binding to an object in the other project, I
just get a bindingsource on the form.
Any suggestions greatly appreciated!
PS. I'm looking for a designer based solution, as I already have code based
workarounds - thanks.
--
Rich
http://www.badangling.com
....talking pollocks since 1996