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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Bookmark

Thread ID:

Created:

Updated:

Platform:

Replies:

131800 Jul 27,2017 03:31 PM UTC Jul 28,2017 02:06 PM UTC WinForms 1
loading
Tags: GridDataBoundGrid(Classic)
Nino
Asked On July 27, 2017 03:31 PM UTC

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

Mohanraj Gunasekaran [Syncfusion]
Replied On 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 
 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;