Jump to content


Peppa

Member Since 08 Jan 2007
Offline Last Active Apr 12 2007 12:09 PM
-----

Posts I've Made

In Topic: Sort arrow invisible

12 April 2007 - 11:59 AM

Hi!

Drawing a sort sign on the right side of the column when text is too long is better choice, then not drawing a sort sign, I think. This way the available space for title text is calculated by reserving space for sort sign if the column is sorted. If there's enough space, there are't any changes in appearance, but if there isn't, the text may be cropped in some way (ellipsis for example) and the sort sign still stay visible at the right side of column.

If you have capacity, think about this solution, please.

regards

In Topic: Sorting

12 April 2007 - 11:43 AM

QUOTE (emailaya @ Jan 1 2007, 12:37 AM) <{POST_SNAPBACK}>
hi
i have a cds which data is filled in runtime, not using a SQL
but a simple cds.Append; and cds.Post;

how can i make a column order when the user clicks on the header?
i cant simply use order by or sth like that
all records are buffered

thanks

Hi emailaya!

I prefer Firebird + FIBPlus components. TpFIBDataSet supports ordering by multiple fileds on buffered records either. I don't think that NextDBGrid can order rows, because rows aren't buffered, but you may try with buffering options included. If you don't need on the fly editing behaviour you may try NextGrid + NxDataCellSource component. I had cases where this solution worked best, but I'm not an expert of NextGrid.