I have an UltraGrid where I want a set of FixedRows at the bottom (...Override.FixedRowStyle = FixedRowStyle.Bottom;). In the InitializeRow event I determine whether a row should be fixed and set the e.Row.Fixed = true. If I have 3 fixed rows and add them in the order I need, they are added from the bottom up rather than in the order I add them. Example, if the rows' first column are 1, 2, 3, I want the order of those rows to be 1,2,3 -- not 3,2,1. I intitially got around this by defering the FixedRowStyle setting till after the grid was loaded which works the first time. But if I reload the grid with different data the fixed rows are again added from the bottom up. How can I solve this? Another question, Can a Fixed row's cells be modified?
Thanks, Ron
I added a Sort Key and SortedColumns which seems to work, but another issue is occurring in that PerfornAutoResize on the grid columns does'nt seem to take in the FixedRows' data which is`wider than the non fixed rows. How do the fixed rows get included in the resizing?
Ron
Hi Ron,
I tried this and it always works fine for me so I attached my sample to this post for you. Please review it and feel free to let me know if I misunderstood you or if you have
any other questions.
That's what I have, and it didn't seem to work, but it could be subsequent grid settings. However, I have since parsed the values that were being chopped of into 2 lines, so for now everthing is fine. If it becomes a future issue, I will add another post. Thanks for your help.
Hi,
Oops. Boris pointed out to me that my sample was calling PerformAutoResize on the wrong column. In fact, this is working just fine for me. My guess is that in your code, you are using the wrong overload of PerformAutoResize that is not including the fixed rows. Try passing in AllRowsInBand.