Jump to content


Photo

How to multi sort on NextDBGrid v6?


  • Please log in to reply
1 reply to this topic

#1 Bagong

Bagong
  • Members
  • 34 posts

Posted 01 December 2021 - 04:19 AM

How to multi sort on NextDBGrid v6?

the same logic as sql multi sort / order



#2 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,191 posts
  • Gender:Male

Posted 16 December 2021 - 01:38 PM

Hello,

 

Please sorry for my delay,

 

Multisort is not automatic, but you can use help from your SQL engine to simply return SQL Query based on sorting.

 

First you need to set MultiSort property to True for the main control. 

 

Then, you can read following properties in event such as OnAfterSort, OnSortQuery etc.

 

   NextDBGrid61.Columns.MultiSortedCount; // Get total count
   NextDBGrid61.Columns.MultiSortedColumn[x].Property...

boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.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