Skip to main content
.NET Standard 2.0+

ControlViewItem Class

A View Item that displays a specific unbound control in a UI.

Namespace: DevExpress.ExpressApp.Layout

Assembly: DevExpress.ExpressApp.v22.1.dll

Declaration

public class ControlViewItem :
    ViewItem,
    IComplexViewItem

Remarks

In certain scenarios, you may need to add an unbound control to a Detail View. To do this, add a IModelControlDetailItem child node to the required Views | <DetailView> | Items node.

HT_Add_Button2_1

Set the child node’s IModelControlDetailItem.ControlTypeName property to the required control’s type. To handle the control’s events, implement a custom Controller that is activated for the View containing the ControlViewItem.

For an example of using the ControlViewItem, refer to How to: Create a Custom Control Detail Item topic.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ControlViewItem class.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

Implements

Inheritance

See Also