1.11M Members

Accessing datasets

 
0
 

hi.
I am working on a project which keeps its data access, business logic and UI in separate projects of a solution.
Is there a way to access a strongly typed dataset in one project of a solution from another project of the same solution?
I need these to fill datagridviews in the UI.
Please answer soon. :S

 
0
 

Yes, just add a reference to the project containing the DataSet.
In the Add Reference dialog select the Projects tab and choose the project containing the DataSet.

 
0
 

I have been trying it that way. But the dataset appears as a class containing some classes; I could not access them as tables. :(

 
0
 

I could not access them as tables.

Not sure what you mean by this.

If you used the dataset designer to create you dataset then yes it contains many sub-classes typically one for each table, and one for each table row.
If you created the tables by draggin from a connected database then there are also dataadapter classes in a seperate namespace.

You
This article has been dead for over six months: Start a new discussion instead
Post:
Start New Discussion
View similar articles that have also been tagged: