[Gambas-user] Columnview. Change behaviour of sorting-feature
Benoit Minisini
gambas at ...1...
Thu Mar 9 23:45:02 CET 2006
On Thursday 09 March 2006 23:33, Alex Ciric wrote:
> Hi together.
>
> I have a columnview with sorted=true.
> If the user clicks on the rows name, it sorts only alphabetical.
> Of course, often its more useful to sort for numbers and other values.
>
> Is there a way to change this behaviour?
>
> Thx.
>
> alex
>
You can't in the stable version.
But in the development version, you have a 'Compare' event that is raised each
time two items must be compared. You just have to handle this event to
override the default alphabetical sort.
You have an example in the implementation of the FileView control in the
gb.form component.
Regards,
--
Benoit Minisini
More information about the User
mailing list