Back to Devexpress

IModelControlDetailItem.ControlTypeName Property

expressappframework-devexpress-dot-expressapp-dot-model-dot-imodelcontroldetailitem.md

latest2.5 KB
Original Source

IModelControlDetailItem.ControlTypeName Property

Specifies the type of the control that displays a Control Detail Item.

Namespace : DevExpress.ExpressApp.Model

Assembly : DevExpress.ExpressApp.v25.2.dll

NuGet Package : DevExpress.ExpressApp

Declaration

csharp
[Required]
string ControlTypeName { get; set; }
vb
<Required>
Property ControlTypeName As String

Property Value

TypeDescription
String

A string specifying the type of the control that displays a Control Detail Item.

|

Remarks

The ControlViewItem loads the specified control type dynamically by its name at runtime. Make sure your application loads the type assembly before it shows a View with this ControlViewItem. Otherwise, the following exception may occur:

console
TypeWasNotFoundException - "The '{ControlTypeName}' type was not found".

To load the type assembly, create any lightweight object from the assembly type at startup:

csharp
var pivotGridAssemblyInitializer = new PivotGridField();

Alternatively, add a control to a UserControl, as shown in the following topics:

See Also

ControlViewItem

IModelControlDetailItem Interface

IModelControlDetailItem Members

DevExpress.ExpressApp.Model Namespace