Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
545
Using UltraDataSource instead of DataSet
posted

I need to read a large xml file and show it using a WinGrid. Now i use a DataSet.
I created a xsd schema and created the DataSet with MSDataSetGenerator (VS2008)

I read that the UltraDataSource has some advantages over the DataSet. Is it possible to create a schema for the UltraDataSource as easy as with MSDataSetGenerator.

The only option i could find was the 'UltraDataSource  Designer'.
Because it's a complicated xml file, i don't like to create it using the 'UltraDataSource  Designer'.

I'm missing something ?

Parents
No Data
Reply
  • 469350
    Offline posted

    Hi,

    I'm not familiar with MSDataSetGenerator, so it's hard to say for sure what you are trying to do. But there isn't any utility to create an UltraDataSet other than the designer. 

    You could write code to build the bands and columns of the UltraDataSource and then populate it with data in code and then use the Save method to save the data to an XML file, though.

    What advantages are you concerned with here? The UltraDataSet does have certain advantages over a DataSet. For one thing, it tends to be faster, since it's relationships are pre-defined. And it also has a load-on-demand mode. But there are also disavantages, like it doesn't have dynamic relationships, and it's not really built to handle interaction between itself and a back end (database) so it doesn't have change tracking.

Children