#1 2012-12-07 16:36:45

lele9
Member
Registered: 2011-10-28
Posts: 170

order property in dbgrid

hi,
probably a stupid question...
i have a base class TSQLBase with properties Created, CreatedFrom, Modified, ModifiedFrom.
All Object inherited from TSQLBase.
when i fill stringrid with sqlite3ui.FillStringGrid i find Created, CreatedFrom, Modified, ModifiedFrom in the first column while i would like to put in the last!
how can i do?
thanks,
Emanuele.

Offline

#2 2012-12-07 17:13:24

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,205
Website

Re: order property in dbgrid

You can perhaps specify the fields order in the query itself.

Offline

#3 2012-12-07 17:14:10

lele9
Member
Registered: 2011-10-28
Posts: 170

Re: order property in dbgrid

its the only solution?

Offline

#4 2012-12-07 17:19:59

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,205
Website

Re: order property in dbgrid

As far as I remember, there is no column swapping method in TSQLTable yet.

Could be fast & easy to do, since all cells are store in one array of pointers, but not implemented yet.

What is included is the possibility to hide an "ID" column (which does make sense if you do not want to display the ID in a grid, but still want to have it to identify each record).

Offline

Board footer

Powered by FluxBB