Back to Devexpress

DiagramNodeMappingInfo.ContainerKey Property

aspnet-devexpress-dot-web-dot-aspxdiagram-dot-diagramnodemappinginfo-628902af.md

latest2.3 KB
Original Source

DiagramNodeMappingInfo.ContainerKey Property

Specifies the name of a data source field that provides the key of a shape’s parent container shape.

Namespace : DevExpress.Web.ASPxDiagram

Assembly : DevExpress.Web.ASPxDiagram.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
[DefaultValue("")]
public string ContainerKey { get; set; }
vb
<DefaultValue("")>
Public Property ContainerKey As String

Property Value

TypeDefaultDescription
StringString.Empty

The container key.

|

Remarks

The parent container node must be of the VerticalContainer or HorizontalContainer type.

Tip

Use the ContainerKey property to change the parent container of a node after it is bound to a data source (in the NodeDataBound event).

See Also

NodeDataBound

Bind Diagram to Data

Example: Diagram for MVC - How to bind containers to an in-memory data source

Example: Diagram for Web Forms - How to bind containers to an in-memory data source

DiagramNodeMappingInfo Class

DiagramNodeMappingInfo Members

DevExpress.Web.ASPxDiagram Namespace