Relationships in Datasets

A dataset can contain related tables like a relational database. The object that facilitates a relationship between data tables is a DataRelation object. The following topics provide information about ADO.NET DataRelation objects, how to create them, and how to use them to work with data in related tables.

Note

The dialog boxes and menu commands you see might differ from those described in Help depending on your active settings or edition. To change your settings, choose Import and Export Settings on the Tools menu. For more information, see Visual Studio Settings.

In This Section

Reference

  • DataRelation
    Represents a parent/child relationship between two T:System.Data.DataTable objects.

  • GetChildRows
    Gets the child rows of a T:System.Data.DataRow.

  • GetParentRow
    Gets the parent rows of a T:System.Data.DataRow.

  • Rule
    Indicates the action that occurs when a ForeignKeyConstraint is enforced.

  • Unique
    Gets or sets a value indicating whether the values in each row of the column must be unique.

  • Constraint
    Represents a constraint that can be enforced on one or more DataColumn objects.