Hi everybody,
I have a grid with 2 columns and for one particular value in the first column (which is the first row), I want to disallow editing in the second column which has the complex container. I tried adding code in the grid's afterrowcolchange event to make that column readonly, but this didn't work. I tried to add code to the container's gotfocus event, but it doesn't seem to fire either.
I am wondering what is the way to disable all controls in that container if myCursor.Column1 = 'Some Value'
Thanks in advance.
The problem is that even if I set the textbox in that container to be disabled (enabled = .f.) after I click on that textbox (which is disabled) I am still able to type.
UPDATE. I have been able to solve it by adding code in the When event of the textbox of the container class and also in the refresh method of the grid's column.
If it's not broken, fix it until it is.
My Blog