Skip to main content
A newer version of this page is available. .
All docs
V20.2

Use a Multiline Editor for String Properties

This lesson explains how to display a multiline editor for string properties.

In this lesson, you will enable a multiline text box for the Task.Subject property editor.

Step-by-Step Instructions

  1. In the MySolution.Module project, open the Model.DesignedDiffs.xafml file in the Model Editor.
  2. Navigate to the BOModel | DevExpress.Persistent.BaseImpl | Task | OwnMembers node.
  3. For the Subject child node, set the properties as follows:

    • Set the RowCount property to 2.

      This creates a two-line editor for the Subject property.

    • Set the Size property to 200.

      This allows a user to enter up to 200 symbols. You can also apply the Size attribute in code.

      xaf blazor multiline text box

  • Run the application. Open a detail form for a DemoTask object. The Subject property uses a two-line memo editor.

    xaf blazor multiline text box

Next Lesson

Add an Item to the Navigation Control

See Also