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
95
UltraWinGrid: DisplayLayout.save SortedColumns do not save the SortIndicator
posted

I save the sorted columns of ultrawingrid, and later i load it back. It's all ok, but when i sort a column descending, it do not work.

For Save i use:

Dim ms2 As New MemoryStream()

ugr.DisplayLayout.Save(ms2, PropertyCategories.SortedColumns)
Dim SortArray() As Byte
SortArray = ms2.ToArray()
ms2.Close()

For load:

  Dim MS2 As New IO.MemoryStream(SortArray)
  MS2.Seek(0, IO.SeekOrigin.Begin)
  Me.ugr.DisplayLayout.Load(MS2, Infragistics.Win.UltraWinGrid.PropertyCategories.SortedColumns)
  MS2.Close()

Is there a own PropertyCategorie or what i have to do, to get it work?