Is there an easy way to use the gridView.SaveLayoutToXML() method to save the XML as a CLOB rather then to a file?
saving grid xml layout to SQL database
Answers
Hi,
You may save the grid layout to a file and then using the FileStream read this file and save it to a field. One more solution is to use the GridView.SaveLayoutToStream method.
Thanks,
Plato
Hello Osmani,
Would you please clarify which platform are you targeting? Do you use WPF Grid?
I am looking forward to your response.
Hello Sasha
I am working in WPF with GridControl, Devexpress 14.2.6
I was trying to save my gridcontrol layout in my database with datatype XML but I have a serialization exception.
I use the code that I posted, is that the correct way to do that? I just want to save my layout in my database.
Thank you
Hello Osmani,
Thanks for the clarification. I've created a separate How to save Grid's layout to a database ticket on your behalf and passed it to our WPF team.
They will address it shortly.