We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Bookmark

Salve,
inserendo un Bookmark nel GridDataBoundGrid in modo che, dopo aver fatto un aggiornamento della Tabella e un refresh del Grid, si riposizioni e visualizzi la riga precedentemente selezionata, è possibile?
Grazie
Cordiali saluti
Nino

Translated from Italian to English using Google Translate;

Hi,
By inserting a Bookmark into GridDataBoundGrid so that, after you have done a table update and a Grid refresh, restores and displays the previously selected line, is it possible?
Thanks
Best Regards

Nino

1 Reply

MG Mohanraj Gunasekaran Syncfusion Team July 28, 2017 02:06 PM UTC

Hi Nino, 
 
Thanks for using Syncfusion product. 
 
By default, GridDataBoundGrid does not have the direct support to serialize and deserialize the grid. If you want this support, we should implement manually. We have prepared the simple sample based on your requirement. Please refer the below code example and the sample, 
 
Code example 
// Serialization 
Stream s = File.Create(saveFile.FileName); 
BinaryFormatter b = new BinaryFormatter(); 
b.AssemblyFormat = FormatterAssemblyStyle.Simple; 
b.Serialize(s,table); 
s.Close(); 
 
// Deserialization 
BinaryFormatter b = new BinaryFormatter(); 
b.AssemblyFormat = FormatterAssemblyStyle.Simple; 
object obj = b.Deserialize(s); 
DataTable table = obj as DataTable; 
this.gridDataBoundGrid1.DataSource = table; 
if (selectionList != GridRangeInfo.Empty) 
{ 
    this.gridDataBoundGrid1.Model.Selections.Clear(); 
    this.gridDataBoundGrid1.Model.Selections.Add(selectionList); 
} 
 
 
Sample link: GridDataBoundGrid 
 
Regards, 
Mohanraj G 
 


Loader.
Up arrow icon