Skip to main content
All docs
.NET Framework 4.5.2+

Add an Editor to a Detail View

This lesson explains how to add an editor to a Detail View. In this example, we add an editor for the Department.Office property to the Contact Detail View.


Before you proceed, take a moment to review the following lesson:

Step-by-Step Instructions

  1. In the MySolution.Module project, open the Model.DesignedDiffs.xafml file in the Model Editor.

  2. Navigate to the Views | MySolution.Module.BusinessObjects node. Expand the Contact_DetailView child node and click the Layout node.

  3. The Model Editor displays a design surface that imitates the Contact Detail View. Right-click the View’s empty space and choose Customize Layout.

    Start layout customization

  4. In the invoked Customization window, click the Add button.

    Customization Window

  5. In the Object Model dialog, expand the Department node, select the Office field, and click OK.

    Object Model Window

  6. The Office: item appears on the Hidden Items tab of the Customization window.

    A new field is added to the Object Model Window

  7. Drag the Office: item to the required position on the Contact Detail View.

    Add Layout Item Department.Office

  1. Run the application and invoke the Contact Detail View. The Office editor is located in the same column as the Department editor, Position editor, and other editors.

    The new editor in the Detail View

Next Lesson

Change Field Visibility in a List View