Jump to content


Photo

Locking a Checkbox in a Row.


  • Please log in to reply
1 reply to this topic

#1 Speed

Speed

    Senior Member

  • Members
  • PipPip
  • 246 posts
  • Gender:Male

Posted 31 March 2026 - 08:21 AM

Hi Boki,

 

I’d like to prevent users from interacting with a checkbox column, but only for specific rows.

 

In other words, I need something like a per-cell or per-row “read-only” state for a checkbox column.  The checkbox should still be visible, but the user should not be able to check or uncheck it for those rows.

 

Is there a built-in way to achieve this in TNextGrid6, or would this need to be handled manually (e.g. intercepting events and reverting changes)?

 

Ideally, I’d also like to visually indicate that the checkbox is disabled for those rows, but that's not essential.

 

Thanks in advance.

 

Kind regards,

 

Steve

 

 

 



#2 Boki (Berg)

Boki (Berg)

    Boki (Berg)

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

Posted 01 April 2026 - 01:41 AM

Hello Steve,

 

Does Enabled property of Cell can help you? You can also change background if needed?


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.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users