you can do this directly, this is what you need to be aware of.
you need to consider both locked and enabled setting
for info the labels/controls will go like this
1 locked=false, enabled=true - normal field
2 locked=false, enabled=false - greyed field and label
3 locked=true, enabled=true - normal field appearance. you can enter the field to sort/search/filter on it, etc - but not change it
4 locked=true, enabled=false - normal field appearance, but with no interaction
so in any case other than the greyed case, you can change colours to suit. (greyed is only a certain
foreground/background combination)
but cases 2 and 4 work the same - no interaction - just slightly different presentation
note that locked and enabled are both read/write properties