StrataFrame Forum

Setting textboxes to read only

http://forum.strataframe.net/Topic2930.aspx

By StarkMike - 9/20/2006

I have a maintenance form and textboxes bound to the BO. However I want some of these text boxes bound but readonly. How do I do that?
By Steve L. Taylor - 9/20/2006

Hey Mike,

  1. Set the control's read-only state = true
  2. Set the control's IgnoreManageReadOnlyState = true (under StrataFrame Settings)

This should give you the desired results.

Steve

By StarkMike - 9/20/2006

I'm sorry I should have mentioned that the textbox in question is one of those DevExpress inherited controls. I didnt see a readonly property on them.
By Trent L. Taylor - 9/20/2006

You can do this several ways.  One thing you can do is set their TextEdit from Standard (or Default) to Disabled.  This will prevent the end-user from editing the control.  You can find this inder their "Properties" property Tongue