earlrainer
Programmer
Hi guys,
I dont think this is possible..but anyways lets try...
I have a dbgrid on my form.The dataset of the grid's datasource is a query.
what i want to do is, when the user clicks a column heading , then the grid should be sorted by that column.
I had read some posts about achieving the above if the dataset is a Table,but not if it is a query.
Also even if the dataset is a Table, then i can sort only if the column is indexed(or something like that)
Can you guys help me to do the same with a query and also be able to sort on non indexed columns..
it would be really great if you guys help me on this one
I dont think this is possible..but anyways lets try...
I have a dbgrid on my form.The dataset of the grid's datasource is a query.
what i want to do is, when the user clicks a column heading , then the grid should be sorted by that column.
I had read some posts about achieving the above if the dataset is a Table,but not if it is a query.
Also even if the dataset is a Table, then i can sort only if the column is indexed(or something like that)
Can you guys help me to do the same with a query and also be able to sort on non indexed columns..
it would be really great if you guys help me on this one