aspnet-devexpress-dot-web-dot-aspxdiagram-dot-diagramedgemappinginfo-f61bb290.md
Specifies the name of a data source field that provides an edge’s end node key.
Namespace : DevExpress.Web.ASPxDiagram
Assembly : DevExpress.Web.ASPxDiagram.v25.2.dll
NuGet Package : DevExpress.Web
[DefaultValue("ToID")]
public string ToKey { get; set; }
<DefaultValue("ToID")>
Public Property ToKey As String
| Type | Default | Description |
|---|---|---|
| String | "ToID" |
The field name.
|
Tip
Use the ToKey property to change the end node of an edge after it is bound to a data source (in the EdgeDataBound event).
<dx:ASPxDiagram ID="Diagram" runat="server" Width="100%" Height="600px" Units="Px"
NodeDataSourceID="FlowNodeDemoDataSource" EdgeDataSourceID="FlowEdgeDemoDataSource" >
<SettingsAutoLayout Type="Layered" Orientation="Vertical" />
<Mappings>
<Node Key="ID" Type="Type" Width="Width" Height="Height" Left="Left" Locked="Locked" Style="Style"
Text="Text" TextStyle="TextStyle" Top="Top" ZIndex="ZIndex"/>
<Edge Key="ID" FromKey="FromID" ToKey="ToID" Text="Text" FromLineEnd="StartTip" FromPointIndex="StartPoint"
LineType="Type" Locked="Locked" Style="Style" TextStyle="TextStyle" ToLineEnd="EndTip"
ToPointIndex= "EndPoint" ZIndex="ZIndex"/>
</Mappings>
</dx:ASPxDiagram>
See Also