Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Does DbAltGrid support sorting, like the grid in Microsoft Outlook does?

0
10 Posted

Does DbAltGrid support sorting, like the grid in Microsoft Outlook does?

0
10

In Microsoft Outlook you can see a kind of ListView. It holds strings itself internally like TStringGrid and TListView do, so you have all the strings in memory. TDbAltGrid is a user interface component, not data-manipulating nor data-storage one. It is, like TDBGrid, a so-called data-aware component and is designed to display and edit records fetched from the underlaying dataset. The only advantage over TDBGrid is the ability to draw sort marks in header. TDbAltGrid can display an appropriate sort mark in the title cell for the field the dataset is sorted against and sorting options for other fields. In order to sort records, the grid would have to cache all data in memory locally and might consume unexpected amount of system resources and degrade performance. Since the underlying dataset can do all sorting stuff more effectively, you have to perform sorting using its methods.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123