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

Copying the GridControl

Hi, I just want to copy the whole content of the GridControl grid and store in some collection. I am doing like below System.IO.MemoryStream s = new System.IO.MemoryStream(); gd.SaveBinary(s); m_UserFilterHashTable.Add(filterName,s); and retrieving like GridControl grid = new GridControl(GridModel.LoadBinary( (System.IO.MemoryStream) myEnumerator.Value)); m_RowFilters.GridCtrl = grid1; so i am getting below error End of Stream encountered before parsing was completed. Is there any other method where we can copy whole content of the Gridcontrol.

1 Reply

AD Administrator Syncfusion Team December 22, 2004 02:20 AM

Use LoadBinary/SaveBinary on the GridModel. Here is a minimal sample showing how you can use LoadBinary/SaveBinary to create a duplicate grid. DuplicateGrid_8564.zip

Loader.
Live Chat Icon For mobile
Up arrow icon