You can use [NoEdit] attribute to the property in your code.
You can use [ReadOnly] attribute to the property in your code.