General information
Category:
Coding, syntax & commands
Todd-
_How_ is it not working? _Where_ are you issuing the command from? The reason it's not working is that the condition is being evaluated when you make the call. It's not being reevaluated for each column in the grid.
So, whereever you are calling the command (the "this")--it's controlsource is being compared to "myfield" and _that_ value is being passed to SetAll().
You could try setting the condition in each column's refresh, but it is just one column that will be the expection, then I'd go with Bruce's advice.
HTH
>I would like to set the readonly = .t. for all columns in a grid, except one. I tried something like:
>
>ohere.mygrid.setall("readonly", this.controlsource # "myfield", "Column")
>
>It doesn't work. Is there another way to do it?
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only