Version

ForeignKey Property (TreeGridModel)

defines the property in the child layout which holds the non-unique id that links the child layout to the parent. in cases of one to many relationships a foreign key will most probably *not* match the primary key of the child layout, so it will need to be defined. in one to one relationships the ForeignKey may be the same as the PrimaryKey. Note that when binding to flat data, the ChildDataKey option also needs to be set to an existing object that's of type ICollection (or a type that implements ICollection).
Syntax
'Declaration
 
Public Shadows Property ForeignKey As System.String
public new System.string ForeignKey {get; set;}
Requirements

Target Platforms: Windows 8.1, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

View on GitHub