Jump to content


Photo

Color NextDBGrid as if it was sorted.


  • Please log in to reply
2 replies to this topic

#1 golfbrad

golfbrad
  • Members
  • 15 posts

Posted 18 September 2015 - 08:43 PM

Using Delphi XE8 and Latest version of NextGrid.

 

I perform an SQL command to retrieve and populate the columns of DB NextGrid.  I use the ORDER BY command in SQL to perform the initial Sort of the data and it populates the NG just great.  
My question is how do I "Simulate" clicking the Column Header so that it is easy to tell the Grid is sorted and by which column ?
I don't want to manually call the sort command since I already have the initial grid sorted via SQL.
 
Somehow I want it to look like the normal sort is in place, and still allow for additional clicking on header cell to sort on other columns, in which case I will re-issue the SQL ORDER by command and repopulate the Grid.
 
Any help is appreciated.


#2 Boki (Berg)

Boki (Berg)

    Boki (Berg)

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

Posted 19 September 2015 - 12:36 AM

Hi,

 

Please try to set Sorted property of Column to True.

 

Hope that this helps.


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.

#3 golfbrad

golfbrad
  • Members
  • 15 posts

Posted 22 September 2015 - 08:55 PM

That did the job, thanks.






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users