Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dataset Question...pls Help!

Status
Not open for further replies.

Bernini

Programmer
Oct 26, 2004
98
MT
Hi

I'm trying to use the DataSet and to do so i've referenced the System.Data right! But as soon as i declare a DataSet it asks me to reference the System.XML too.! Should it be so?

When i tried to reference the System.XML and used the below code it failed; as opposed to when it USED to work on another pc:

Code:
 dataviewgrid1.datasource = myDataset.tables("mytable").DefaultView


Thanks
B
 
Yes dataset belongs to the system.data namespace. yes it needs the system.xml namespace to work but this shouldn't affect the code.

Why do you use the defaultview to link to the datasource is that needed?
this should work just as well.

dataviewgrid1.datasource = myDataset.tables("mytable")

perhaps you use some other code that does need it

Christiaan Baes
Belgium

If you want to get an answer read this FAQ faq796-2540
There's no such thing as a winnable war - Sting
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top