[Gambas-user] How to sort a TableView?

T Lee Davidson t.lee.davidson at ...626...
Tue Apr 5 20:11:35 CEST 2016


Yes, I agree since the Mode for String[].Sort is integer and GridView.Columns.Ascending is boolean.

But, how about this?
ValueSorted.Sort(IIf(TableView1.Columns.Ascending, gb.Ascent, gb.Descent))


On 04/05/2016 10:17 AM, Gianluigi wrote:
> Hello Lee,
> Milio propose this change to avoid the arrows appear upside than sorting.
> Instead of:
> ValueSorted.Sort(GridView1.Columns.Ascending)
> this code:
> If GridView1.Columns.Ascending Then
>    ValueSorted.Sort(gb.Ascent)
> Else
>    ValueSorted.Sort(gb.Descent)
> Endif
> Regards
> Gianluigi
>

-- 
Lee
__________

"Artificial Intelligence is no match for natural stupidity."




More information about the User mailing list