Jump to content


Photo

Keep cell color when selecting row


  • Please log in to reply
3 replies to this topic

#1 Alfredoc

Alfredoc
  • Members
  • 11 posts

Posted 21 March 2022 - 05:27 PM

Hello,
I have the following query. I have colored a cell and when selecting the row of that cell, it loses its color while the row is selected.
 
How can I keep the cell color when I select the row?
 
Beforehand thank you very much  -_-

Attached Files



#2 Boki (Berg)

Boki (Berg)

    Boki (Berg)

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

Posted 21 March 2022 - 08:18 PM

Hi,

 

Maybe using OnGetCellColor event of a View can help.

 

There you can inspect state of cell being painted (for example if selected) and then ignore selection color, but use instead NextGrid61.Cell[ACol, ARow].Color for CellColor parameter.

 

More about this event here: http://developer.ber...=182&lang=en-us


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 Alfredoc

Alfredoc
  • Members
  • 11 posts

Posted 22 March 2022 - 05:24 AM

Okay. Almost...  :rolleyes:

Update 1

Best...  :D

 

Update 2

Yea!!!  :lol:

 

 

Attached Files



#4 Boki (Berg)

Boki (Berg)

    Boki (Berg)

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

Posted 22 March 2022 - 11:12 AM

Hi,

 

I'm glad that it work for you now.


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