Recent

Author Topic: StringGrid with sorting by numbers, date, strings  (Read 13237 times)

M[a]nny

  • Full Member
  • ***
  • Posts: 130
  • Dreamer
StringGrid with sorting by numbers, date, strings
« on: August 05, 2010, 09:03:44 am »
Hi people.

Is there any component for Lazarus which supports sorting collumns? I used to use NiceGrid (it's component from Delphi - http://www.priyatna.org/nicegrid.php) but i'm not sure if something similar exists here.
Bad news: Time flies.
Good news: You are the pilot.

Don't try to be perfect, just be unique.

Leledumbo

  • Hero Member
  • *****
  • Posts: 8594
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: StringGrid with sorting by numbers, date, strings
« Reply #1 on: August 05, 2010, 09:25:21 am »
Why not port that component? The code doesn't seem to be tied to Windows API very much.

theo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1922

M[a]nny

  • Full Member
  • ***
  • Posts: 130
  • Dreamer
Re: StringGrid with sorting by numbers, date, strings
« Reply #3 on: August 05, 2010, 06:20:08 pm »
Why not port that component? The code doesn't seem to be tied to Windows API very much.
I've never done that. Is it hard to do?
Bad news: Time flies.
Good news: You are the pilot.

Don't try to be perfect, just be unique.

fredycc

  • Sr. Member
  • ****
  • Posts: 264
Re: StringGrid with sorting by numbers, date, strings
« Reply #4 on: August 05, 2010, 07:46:49 pm »
Hi; Check OrphPort?

Quote
http://wiki.lazarus.freepascal.org/OrphPort

Regards

Leledumbo

  • Hero Member
  • *****
  • Posts: 8594
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: StringGrid with sorting by numbers, date, strings
« Reply #5 on: August 06, 2010, 08:58:36 am »
Quote
I've never done that. Is it hard to do?
Depend on how its coded in general. For this case, it seems easy. I'll try as well. Use Tools->Convert Delphi package to Lazarus package (use daily snapshot version, the converter has grown MUCH since 0.9.28.2).

jesusr

  • Sr. Member
  • ****
  • Posts: 483
Re: StringGrid with sorting by numbers, date, strings
« Reply #6 on: August 06, 2010, 11:20:35 pm »
Standard StringGrid has sorting capability built in, by default it can sort strings in either ascending or descending order, check this link for documentation: http://wiki.lazarus.freepascal.org/Grids_Reference_Page#Sorting_Columns_or_Rows

 

TinyPortal © 2005-2018