Peter's Gekko

Sponsors

The Lounge

News

Advertisement

Images in this post missing? We recently lost them in a site migration. We're working to restore these as you read this. Should you need an image in an emergency, please contact us at imagehelp@codebetter.com
Why doesn't the DataSetDataSource have a SetDataSet method ?

The new data aware controls in VS 2005 are all very very “tabular”, most of them work with one table of data. In the 1.1 days (=today) you can use a plain dataset and bind your web form controls to the various tables in that dataset. In 2005 there is the DataSetDataSource control which wraps up a full XML dataset with multiple tables. You fill the dataset in the control from an xml file or pass in the XML as a string. You can save the updates data to a file and get the updated XML as string.

The GetDataSet method returns the wrapped dataset as a dataset object. But why is there no SetDataSet method ? If I want to fill the control from a dataset object I first have to serialize the object to XML and assign the result of that to get the data in.

Peter


Posted 07-18-2004 11:33 AM by pvanooijen

[Advertisement]

Comments

Peter's Gekko wrote Typed datasets, datasources and multiple tables in Whidbey
on 08-19-2004 11:31 PM
Typed datasets, datasources and multiple tables in Whidbey

Add a Comment

(required)  
(optional)
(required)  
Remember Me?