Why can't we display data in descending order in Delphi?



Why can't we display data in descending order in Delphi?..

Answer / Hansraj Meena

In Delphi, when you want to sort data in descending order, you should use the ODSortField or ODSortFields property of TDataSource and specify DESC instead of ASC for the sort direction.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Delphi Interview Questions

When I try to execute sql query from delphi7 it throws the following exception ORA-01704: string literal too long. I know the reason why its throwing this exception. My problem is.... I have catched this exception throw Try.... Except block.....In except block i am performing rollback..... due to above error its also throwing exception in rollback transaction...........due to rollback exception...........it had created some problem in connection...........every time when i try to open or close a connection it throws an exception " Operation is not allowed when the object is open"

1 Answers  


What are the problems faced by memory leaks?

1 Answers  


How to Change the location of the object repository ?

1 Answers  


How to Use escape codes with the format() function ?

1 Answers  


How to Perform undo on an edit control?

1 Answers  


What are the Differences in the install paths for Kylix?

1 Answers  


How to Connect to a remote CORBA server?

1 Answers  


What is "Error 113" during installation?

1 Answers  


How to Set a transparent background color for TImageList?

1 Answers  


How to print a TStringGrid or a TDBGrid ?

1 Answers  


'Missing Data Provider or Data Packet' . what does this error mean?

2 Answers  


How many tables can be connected with joins in oracle at a time?

1 Answers  


Categories