StrataFrame Forum
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



Setting textboxes to read onlyExpand / Collapse
Author
Message
Posted 09/20/2006 3:18:41 PM


StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: StrataFrame Users
Last Login: 07/09/2008 2:20:16 PM
Posts: 436, Visits: 944
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?
Post #2930
Posted 09/20/2006 3:49:57 PM
StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: 01/15/2008 8:44:34 AM
Posts: 40, Visits: 91
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

Post #2931
Posted 09/20/2006 3:56:36 PM


StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: StrataFrame Users
Last Login: 07/09/2008 2:20:16 PM
Posts: 436, Visits: 944
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.
Post #2934
Posted 09/20/2006 3:59:34 PM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Yesterday @ 4:50:35 PM
Posts: 4,796, Visits: 4,766
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
Post #2936
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Ben Chase, Trent L. Taylor, Steve L. Taylor

PermissionsExpand / Collapse

All times are GMT -6:00, Time now is 6:25am

Powered by InstantForum.NET v4.1.4 © 2008
Execution: 0.109. 10 queries. Compression Enabled.
Site Map - Home - My Account - Forum - About Us - Contact Us - Try It - Buy It

Microsoft, Visual Studio, and the Visual Studio logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.