Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » ArrayCtrl, HeaderCtrl & GridCtrl » GridCtrl: Repaint bug?
GridCtrl: Repaint bug? [message #43166] Sun, 25 May 2014 10:05 Go to previous message
forlano is currently offline  forlano
Messages: 1185
Registered: March 2006
Location: Italy
Senior Contributor
Hello,

I have a gridctrl that is sorted via a multisort each time it is feeded.
Unfortunately the grid is multisorded ONLY the first time.
Look at the first picture:
I click the left grid (third row) and some data go in the right grid that is sorted as I want with this code in the callback

...
arrPlayer.MultiSort(1, GridCtrl::SORT_DOWN)
	     .MultiSort(2, GridCtrl::SORT_DOWN)
	     .MultiSort(0, GridCtrl::SORT_UP);
arrPlayer.Repaint();            
...

index.php?t=getfile&id=4543&private=0

Now, if I repeat the same operation (Clear the grid and feed again with the same data) I get this result

index.php?t=getfile&id=4544&private=0
So the TB column (the second one to be sorted) is not sorted properly.
I do not know if this is a Repaint() problem or I need to restart/reset in some way the grid in order to be ready to perform a new multisort.

Thanks,
luigi
  • Attachment: pic1.png
    (Size: 14.05KB, Downloaded 508 times)
  • Attachment: pic2.png
    (Size: 13.29KB, Downloaded 431 times)
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Hide cell content with '*' symbol in GridCtrl
Next Topic: GridCtrl: custom ButtonOption inside a cell
Goto Forum:
  


Current Time: Fri Apr 26 01:54:40 CEST 2024

Total time taken to generate the page: 0.07073 seconds