what type files gc support (all the formarts ,all i have do can be saved)

sorry, i know syncfusion,s products soon. i want to know what type files gc support (all the formarts ,all i have do can be saved)? like excel?

3 Replies

AD Administrator Syncfusion Team March 1, 2006 12:01 PM UTC

Hi China, The grid control(GridModel) can be saved to a file in XML, SOAP or in BINARY format using the grid.SaveBinary(filename), grid.SaveSoap(filename) and grid.SaveXml(filename) respectively. And the grid can be loaded from the file by using the GridControl.LoadBinary(filename), GridControl.LoadSoap(filename) and grid.InitializeFromXml(filename) respectively, where the LoadBinary() and the LoadSoap() are the static members of the GridControl/GridModel class. Below is a code snippet. Save to file… grid.SaveXml(@"c:\mygrid.xml"); grid.SaveSoap(@"c:\mygrid.grd"); grid.SaveBinary(@"c:\mygrid.grd"); Load from file… this.gridControl1.Model = GridControl.LoadBinary(@"c:\mygrid.grd"); this.gridControl1.Model = GridControl.LoadSoap(@"c:\mygrid.grd"); grid.InitializeFromXml(@"c:\mygrid.xml"); Regards, Calvin.


BJ bjhjh March 2, 2006 04:34 PM UTC

ok but a workbook can also be save? can you can give some source about this problem and http://www.syncfusion.com/Support/Forums/message.aspx?MessageID=41389 ? thank you very much ! >Hi China, > >The grid control(GridModel) can be saved to a file in XML, SOAP or in BINARY format using the grid.SaveBinary(filename), grid.SaveSoap(filename) and grid.SaveXml(filename) respectively. >And the grid can be loaded from the file by using the GridControl.LoadBinary(filename), GridControl.LoadSoap(filename) and grid.InitializeFromXml(filename) respectively, where the LoadBinary() and the LoadSoap() are the static members of the GridControl/GridModel class. Below is a code snippet. > >Save to file… > >grid.SaveXml(@"c:\mygrid.xml"); >grid.SaveSoap(@"c:\mygrid.grd"); >grid.SaveBinary(@"c:\mygrid.grd"); > > >Load from file… > >this.gridControl1.Model = GridControl.LoadBinary(@"c:\mygrid.grd"); >this.gridControl1.Model = GridControl.LoadSoap(@"c:\mygrid.grd"); >grid.InitializeFromXml(@"c:\mygrid.xml"); > > > >Regards, >Calvin.


AD Administrator Syncfusion Team March 5, 2006 10:10 AM UTC

Hi, A work book can be saved by looping through all its work sheets (grid) and by saving it. Please refer the sample to see if that helps. Regards, Calvin.

41388.zip

Loader.
Up arrow icon