Is it possible to sort and group data in TeeGrid in Lazarus? I have data with several thousand rows and a couple of dozen columns and I need to sort and group it by clicking the header.
I tried to use different data providers, for example:
- RTTI. Can't compile. Seems not supported in Lazarus.
- DB. The sorting and grouping functions are not supported by default.
- Strings. It is an array of arrays of strings. Also does not support sorting and grouping by default.
So maybe I'm missing something. Could you show examples of these functions in Lazarus?
Sorting and Grouping data in Lazarus
Re: Sorting and Grouping data in Lazarus
Hello,
We're looking at options. TeeGrid Sort depends on the availability of RTTI. We'll get back with any suggestions we may be able to make.
Regards,
Marc Meumann
We're looking at options. TeeGrid Sort depends on the availability of RTTI. We'll get back with any suggestions we may be able to make.
Regards,
Marc Meumann
Steema Support
Re: Sorting and Grouping data in Lazarus
Ok, i am using TBufSet and Indexes to sort data. But i can't find the way to simple concatenate columns.
For example i need just a header in two columns. But when i try to do this, the data is always empty.
(demo -> Lazarus -> Database -> ClientDataSet) In the default stringgrid, I can concatenate columns by drawing rectangles above the cells. Is there something like this in teegrid?
For example i need just a header in two columns. But when i try to do this, the data is always empty.
(demo -> Lazarus -> Database -> ClientDataSet) In the default stringgrid, I can concatenate columns by drawing rectangles above the cells. Is there something like this in teegrid?
Re: Sorting and Grouping data in Lazarus
Hello,
I'm not sure to understand the situation. You seem to be adding two sub-columns under "TITLE", but then you want to concatenate them?
Could you please arrange a simple example project we can run as-is to reproduce the problem here?
Thanks in advance.
I'm not sure to understand the situation. You seem to be adding two sub-columns under "TITLE", but then you want to concatenate them?
Could you please arrange a simple example project we can run as-is to reproduce the problem here?
Thanks in advance.
Best Regards,
![]() | Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) |
![]() ![]() ![]() ![]() ![]() ![]() |
Please read our Bug Fixing Policy |
Re: Sorting and Grouping data in Lazarus
Yes, that's right, I added two columns. But, I cannot put the data inside.
For example, i want to move the "title" data inside the "qwe" column, and the "author" data inside the "asd" column. This project is from the official demo.
For example, i want to move the "title" data inside the "qwe" column, and the "author" data inside the "asd" column. This project is from the official demo.
- Attachments
-
- tee_grid_demo_project.zip
- (160.72 KiB) Downloaded 789 times
Re: Sorting and Grouping data in Lazarus
Best Regards,
![]() | Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) |
![]() ![]() ![]() ![]() ![]() ![]() |
Please read our Bug Fixing Policy |