Solved

Sorting DBGrid

Posted on 1997-04-27
1
188 Views
Last Modified: 2010-04-04
I am using TQuery component on my form. Is it possible to change a DBGrid's sorting order as I want. I don't want to use ORDER BY clause in my SQL statement because I am not allwed to edit the Query's result set.
0
Comment
Question by:rox
1 Comment
 
LVL 2

Accepted Solution

by:
javiertb earned 100 total points
ID: 1335735
If you want to have your DbGrid ordered, you'll have to deal with  the dataset one way or another. That you are not allowed to edit the Query's result set doesn't imply that you can't change the query strings to add an 'order by' clause. Other solution it would be using one of those free components (TSortGrid) available at DSP where you can sort by any column but it's not a data aware component, so you'd have to put all your data programatically in it.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question