Jump to content


Member Since 10 Mar 2011
Offline Last Active Jul 25 2019 05:20 PM

Topics I've Started

Sort by value in hidden column

20 April 2018 - 11:32 AM


I want to sort one column (visible) by values in other column (hidden) - is this possible?

The values in visible column are reformatted representation for end user and cannot be used for sorting by themselves.

I tried to implement onCompare, but it does not know the position of the cells it is comparing, so I cannot link to another cells from there.



Simply put -- when user clicks on column A header, I need the grid to get sorted by column B values, but still show that column A is the sorted column :)






SelectNone not working in TNextGrid v6.0.55

05 October 2017 - 11:58 AM


just updated first grid to TNextGrid6, and replaced old NoSelection call with new SelectNone in my code.


I click on a single row in the grid, and it gets selected.

Then I call SelectNone -- the row still remains selected

Then when I click on any other row in the grid, it properly gets selected, but the first row still remains displayed as selected.



What's wrong?



EDIT -- So, it only works when multiple rows are selected (gtMultiSelected in FState)... but it does not work when just single row is selected... why is that?