DataRelation.Nested Property


Gets or sets a value that indicates whether DataRelation objects are nested.

 virtual property bool Nested { bool get(); void set(bool value); };
public virtual bool Nested { get; set; }
member this.Nested : bool with get, set
Public Overridable Property Nested As Boolean

Property Value

true, if DataRelation objects are nested; otherwise, false.



You can use DataRelation objects to define hierarchical relationships, such as those specified in XML. For more information, see Nesting DataRelations.


If the TableName of the child table in the relation matches the ColumnName of a column in the parent table in the relation, the Nested property must be false. This was not required with the .NET Framework version 1.0.

Applies to