EricTheViking
New member
- Joined
- Mar 19, 2008
- Messages
- 1
- Programming Experience
- 10+
Hello,
I'm working on a VB.NET App, VS2008 using .Net 2.0.
What I have is a solution with two projects in it. One project is a Winforms app, the other is a class library project that is my data access layer.
The class library has a single dataset in it that contains a single table. The database it refers to is SQL2005.
In my windows app I want to bind controls to the dataset in the class library - but can't get it to work.
Under project datasources I added an Object datasource that references the dataset in my class library. When I drag the table from the datasource explorer to the form I get the design time data grid, with a navigation control and a dataset component is added to the form designer along with binding source controls for the data and navigator.
When I run the app the control doesn't bind and sits there looking blank.
If I use a dataset within the app project it works fine!
I notice that when creating the data grid from the class library projct data source there is no table adapter added to the form.
So in summary how do I data bind to a dataset in a different project within a solution?
Any suggestion gratefully received!
I'm working on a VB.NET App, VS2008 using .Net 2.0.
What I have is a solution with two projects in it. One project is a Winforms app, the other is a class library project that is my data access layer.
The class library has a single dataset in it that contains a single table. The database it refers to is SQL2005.
In my windows app I want to bind controls to the dataset in the class library - but can't get it to work.
Under project datasources I added an Object datasource that references the dataset in my class library. When I drag the table from the datasource explorer to the form I get the design time data grid, with a navigation control and a dataset component is added to the form designer along with binding source controls for the data and navigator.
When I run the app the control doesn't bind and sits there looking blank.
If I use a dataset within the app project it works fine!
I notice that when creating the data grid from the class library projct data source there is no table adapter added to the form.
So in summary how do I data bind to a dataset in a different project within a solution?
Any suggestion gratefully received!