Blogs

Gary's Blog

XAF Cookbook #7 – Add Scrollbars to a TextBox in DetailsView

     

Problem

You add a text property to a BO, but you require the user to input a number of lines of text, for example in a description field. By default the DetailsView provides a Textbox showing one line of text entry, you wish to show a number of lines of text entry and have scrollbars if required.

Solution

Decorate the text property with the [Size(SizeAttribute.Unlimited)] attribute or set the RowCount property to an appropriate value in the ApplicationModel or, via the Model, change the PropertyEditor type to Memo or RichText.

Technorati tags:
Digg This
Published Sep 11 2008, 02:38 PM by Gary Short (DevExpress)
Filed under:
Technorati tags: XAF Cookbook
Bookmark and Share

Comments

No Comments
More from DevExpress
Live Chat
Have a pre-sales question?
Need assistance with your evaluation?
We are here to help.
Chat is one of the many ways you can contact members of the DevExpress Team. We are available Monday-Friday between 8:30am and 5:00pm Pacific Time.
If you need additional product information, require pre-sales assistance, or want help with your order, write to us at info@devexpress.com or call us at
+1 (818) 844-3383.