Best way to make a bound control readonly?


Author
Message
thegwill
thegwill
StrataFrame Beginner (16 reputation)StrataFrame Beginner (16 reputation)StrataFrame Beginner (16 reputation)StrataFrame Beginner (16 reputation)StrataFrame Beginner (16 reputation)StrataFrame Beginner (16 reputation)StrataFrame Beginner (16 reputation)StrataFrame Beginner (16 reputation)StrataFrame Beginner (16 reputation)
Group: Forum Members
Posts: 16, Visits: 177
I have a business object with a bound field that I display in a form. The field value is populated in code (as a default value for the BO) so the user should not be able to change it although they do need to see it

By defult, when editing, the control becomes enabled. I have remedied this by implementing the EditingStateChanged event on the BO instance on my form and explicitly setting the UI control.Enabled to false

Question is: this works but is there a better way to do this?

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search