The Syncfusion® native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
ADAdministrator 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.
BJbjhjhMarch 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.
ADAdministrator 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.