Jump to content


Photo

Problems with sorting


  • Please log in to reply
3 replies to this topic

#1 Falcon

Falcon
  • Members
  • 24 posts

Posted 09 December 2018 - 12:03 PM

Hello,

 

i have a date column with configured properties "sorted=true" and "sortkind=skDescending".
But this doesn't work, the column stays unsorted.

When i try to compile this code "Nextgrid61.columns[3].SortKind := skAscending;"
a compiler-failure appears: [DCC Fehler] Unit1.pas(1039): E2010 Inkompatible Typen: 'TNxSortKind' und 'TSortKind'

 

Nextgrid61.AutoSort is configured with True.

What is wrong and how can i resolve the problem?

I use nextgrid version 6.3.0

Regards

Karl-Heinz

 



#2 Boki (Berg)

Boki (Berg)

    Boki (Berg)

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

Posted 09 December 2018 - 09:21 PM

Hi,

Try to add NxTypes6 in front of type, like NxTypes6.skAscending.

Probably old v5 is in same Library path as new v6 of NextSuite.
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 Falcon

Falcon
  • Members
  • 24 posts

Posted 11 December 2018 - 10:06 PM

like NxTypes6.skAscending
 

Unfortunately, that doesn't work.



#4 Boki (Berg)

Boki (Berg)

    Boki (Berg)

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

Posted 11 December 2018 - 10:35 PM

Hi,

You can also try to simply use TNxSortKind.skAscending.
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.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users