Jump to content


Photo

Multi-Column sorting


  • Please log in to reply
3 replies to this topic

#1 Abner Doon

Abner Doon
  • Members
  • 27 posts
  • Gender:Male

Posted 20 June 2016 - 09:32 PM

Hello,

Is Multi-Column sorting available now ?

Or how I can click on Column and Sort another one ?

(I mean, when I click on column header 1, I sort column 3 which is a invisible sum of column 1 & 2)

If I Intercept header click and try this code, it does'nt work properly :

   Grid.Columns[3].SortKind := MySortKing; // (skAscending, skDescending);
   GridCli.Columns[3].Sorted := True;

but when I physically click on header 3 that's work fine

Could someone help me ?

Thanks

 



#2 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 7,829 posts
  • Gender:Male

Posted 24 June 2016 - 04:08 PM

Hi,

I have started with it in v6 (in v5 it will be quite hard to implement).

Virtual sorting is already possible, but I need to implement internal routine too. I hope that I will add it in next few months.
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Members Section: bms.bergsoft.net
Articles and Tutorials: dn.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#3 Abner Doon

Abner Doon
  • Members
  • 27 posts
  • Gender:Male

Posted 24 June 2016 - 06:28 PM

Hi Boki,

Thanks for your answer

last question:

why physically click do different result than GridCli.Columns[3].Sorted ?

and in another way, how I can click my header by code ? 



#4 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 7,829 posts
  • Gender:Male

Posted 25 June 2016 - 08:58 PM

Hi,

Maybe for your purpose you can use SortColumn method? Also not sure if OnSortColumn method can help too?
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Members Section: bms.bergsoft.net
Articles and Tutorials: dn.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users