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
Saving DisplayLayout in Database


   I am working on a .NET 2.0 application using  UltraWingrid.

I am saving the layout of the grid as follows.

Private GridLayoutsTable As New DataTable

Dim MS As New IO.MemoryStream()
        Me.grdData.DisplayLayout.Save(MS, Infragistics.Win.UltraWinGrid.PropertyCategories.All)

        Dim LayoutArray() As Byte
        LayoutArray = MS.ToArray()

        GridLayoutsTable.Rows.Add(New Object() {Nothing, "MyGridLayout", LayoutArray})

I am getting an error as
"Input array is longer than the number of columns in this table."

 How to Save   the layout values to Database and Load it again?




Parents Reply Children