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
420
XML file size is huge while saving the datasource of the grid as XML
posted

Hello All,

            I am developing a Windows Forms Application wherein I make use of UltraWinGrid control. I have a dataset which is bounded to the grid. I have around 3000 columns and 15000 rows in my entire dataset.

I obtain the grid's datasource while clicking a particular button using the 'Grid.Datasource' property, typecast it as dataset, obtain the xml of the dataset and save it in an xml file. The file size happens to be around 700 mb.

We are not at all able to open the xml file using any of the editors due to its large size. Is there any other way to reduce the file size by using some technique?

  • 469350
    Offline posted

    Hi,

    This doesn't really have anything do with the grid, you are asking about a function of the DataSet, so you might get better responses on a more general DotNet programming forum.

    My guess is that the answer is no. I don't think there is any way to reduce the size of the output from the Save method on the DataSet. I don't think that method was created to be particular efficient or generate small files. It has to save the entire data structure and all of that data, and your data set is pretty big.