[Gambas-user] Automatically sort DataBrowser column

Benoit Minisini gambas at ...1...
Sat Jan 19 22:36:32 CET 2008


On samedi 19 janvier 2008, Paolo Fagni wrote:
> Hello,
>
> When displaying data in a DataBrowser, I guess results are ordered by
> primary key (please correct me if I'm wrong). Is there a way to use another
> field as in "ORDER BY" SQL statement? Or maybe a way to tell the GridView
> to immediately sort by a given column after the data has been inserted. I
> would like to have data sorted by field X that is not the classic `id`,
> without user intervention.
>
> Thank you for your help.

Just set the Sort property of the DataSource to the field name of the sort.

Regards,

-- 
Benoit Minisini




More information about the User mailing list