Ticket DQ8006
Visible to All Users

saving grid xml layout to SQL database

created 19 years ago

Is there an easy way to use the gridView.SaveLayoutToXML() method to save the XML as a CLOB rather then to a file?

Answers

created 19 years ago

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

    Show previous comments (1)
    Sasha (DevExpress Support) 10 years ago

      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

        Sasha (DevExpress Support) 10 years ago

          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.

          Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

          Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.