OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: neperin on May 30, 2023, 11:22:18 PM

Title: How to disable a cell (make it uneditable) in the grid
Post by: neperin on May 30, 2023, 11:22:18 PM
Hello,
I have a grid, which contains a combo-box style column. I want that when the user checks the combo-box, some cells in that row become uneditable, and, if possible, those cells' color become grayish.

Thanks in advance.
Title: Re: How to disable a cell (make it uneditable) in the grid
Post by: Fred Tomke on May 31, 2023, 12:57:23 AM
In such a custom use-case you have to trigger BeginCellEdit and cancel it immediately if the conditions are not fulfilled given by the selected comboboxitem. (Hope it was understandable)
Title: Re: How to disable a cell (make it uneditable) in the grid
Post by: neperin on June 01, 2023, 07:09:55 AM
Thank you. since I am not so proficient using both autolisp and opendcl, I will plan it for future.