Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
125
WinGrid cloning
posted

Hello,

I have a need to clone the layout of a grid on a form.  I thought it would be simple to just save the layout using the code below.

 

 

Dim stream As New System.IO.MemoryStream

ugOriginal.DisplayLayout.SaveAsXml(stream, PropertyCategories.All)

UGNew.DisplayLayout.LoadFromXml(stream, PropertyCategories.All)

Whenever I run this, the loadfromxml is throwing a system.xml.xmlexception: root element is missing.

Would you have a simple example for me to follow.  I do not want to write the xml to disk (which I tried and still go this error.)  Thank you for your time.

Parents
No Data
Reply Children