LucieLastic
Programmer
hi All
I'm using quite a few DBGrids in my app which are datasourced from TQueries. The database is SYBASE.
Like Outlook the user would like to be able to click on a column heading and the data will sort (switching between ASC and DESC).
I've got 3 ideas and wondering which to go for:-
1. Keep rewriting the ORDER BY in the query and accessing the database (the easiest).
2. Not sure if possible:- use indexing within a TTable, datasourced from my Tquery.
3. Program it all! - Using a TStringGrid in some way and loading this with the data from the query. Not sure how to sort in a column on a stringgrid though. Any tips grateful on this one.
So, any ideas on how I should tackle this? Development time isn't an issue really but the closest behaviour I can get to Outlook the better. Would like it to be pretty generic too.
Many thanks
lou
I'm using quite a few DBGrids in my app which are datasourced from TQueries. The database is SYBASE.
Like Outlook the user would like to be able to click on a column heading and the data will sort (switching between ASC and DESC).
I've got 3 ideas and wondering which to go for:-
1. Keep rewriting the ORDER BY in the query and accessing the database (the easiest).
2. Not sure if possible:- use indexing within a TTable, datasourced from my Tquery.
3. Program it all! - Using a TStringGrid in some way and loading this with the data from the query. Not sure how to sort in a column on a stringgrid though. Any tips grateful on this one.
So, any ideas on how I should tackle this? Development time isn't an issue really but the closest behaviour I can get to Outlook the better. Would like it to be pretty generic too.
Many thanks
lou