Hi Experts,
How to save Ultragrid Layout in SQL Server?
Pl s help me.
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.
Here's a KB article that may help:
HOWTO:How can I save a stream to a database?