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 ByteSortArray = 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?
Hi Milko,
thank you for your help. I find out the problem. After i have loaded the sortedcolumns i load the summaries and there the sortindicator will be overwritten.
Hi Bernd,
Here is the same sample built with Infragistics for Windows Forms 2013 Volume 2, version 13.2.20132.1000. I was still not able to reproduce this issue.
So please, test my sample and try to answer the questions from my previous message or to send me a sample reproducing this behavior. Note, without reproducing this at our side there is not much we can do about it.
Looking forward to your reply.
I use Windows Forms 13.2
Hello Bernd,
I followed the steps you suggested and was unable to reproduce the behavior you're describing. I have created a small sample solution with UltraGrid. I have added four buttons:
I’ve run my application and have clicked the buttons in this order Add -> Save -> Clear -> Load. After clicking the Load button sorted columns were loaded correctly.
I have attached the sample project I used to test this. Please test this project on your PC; whether or not it works correctly may help indicate the nature of this issue.
If the project does not work correctly, this indicates either an issue possibly specific to your environment, or a difference in the DLL versions we are using. My test was performed using the latest version of Infragistics for Windows Forms 2016 Volume 1. So could you please let me know the exact version of Infragistics components which you are using?
If the project does show the product feature working correctly, this indicates a possible issue in the code of your application. It will help if you can provide a small, isolated sample application that demonstrates the behavior you are seeing.
Or, if this sample project is not an accurate demonstration of what you're trying to do, please feel free to modify it and send it back.