Jump to content


Photo

How to use the Locked property of a cell


  • Please log in to reply
2 replies to this topic

#1 qi130

qi130
  • Members
  • 23 posts

Posted 02 November 2007 - 09:54 PM

As explained in the title...

In a grid, column #1 is a checkbox column.
when pushing a button, I perform action depending of the state of the box for each row.

But I want this checkbox remain unchecked for particular rows: the checkbox should be disabled.

How to do that ?

I believe the locked property can solve my problem, but It seems not to work as I wish sad.gif

Regards.

#2 Boki (Berg)

Boki (Berg)

    Boki (Berg)

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

Posted 03 November 2007 - 02:43 PM

Hello,

Unfortunatelly, this can't be done with Locked property. Instead, this need to be done with OnBeforeSelect, or with OnBeforeEdit events.

Both events have ACol and ARow parameters and Accept parameter. After setting Accept parameter to False, you will not be able to select/edit this cell.

Best regards
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 qi130

qi130
  • Members
  • 23 posts

Posted 03 November 2007 - 04:38 PM

Ok Boki,

I choose OnBeforeEdit event to manage this...

Thx




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users