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
210
How to save Ultragrid Layout in SQL Server?
posted

Hi Experts,

How to save Ultragrid Layout in SQL Server?

Pl s help me.

Parents
No Data
Reply
  • 2306
    posted

    You could use a varbinary or an xml column to save the layout.  The display layout property of the grid has 2 methods         

              1°:  ultragrid.DisplayLayout.Save(Stream);
               2°: ultragrid.DisplayLayout.SaveAsXml(Stream);

    1° method: you have to save it on a varbinary column. i would use this one. A varbinary column is an array of byte so the stream must be converted to a byte array before saving into the column!

    2° method: you have to save the data on a xml column. So first, the stream must be convertet into xml and than saved on the column.

    hope it helps.

     

Children