DataRowView.CreateChildView Method

Definition

Returns a DataView for the child DataTable.

Overloads

CreateChildView(DataRelation)

Returns a DataView for the child DataTable with the specified child DataRelation.

CreateChildView(String)

Returns a DataView for the child DataTable with the specified child DataRelation name.

CreateChildView(DataRelation, Boolean)

Returns a DataView for the child DataTable with the specified DataRelation and parent.

CreateChildView(String, Boolean)

Returns a DataView for the child DataTable with the specified DataRelation name and parent.

CreateChildView(DataRelation)

Source:
DataRowView.cs
Source:
DataRowView.cs
Source:
DataRowView.cs

Returns a DataView for the child DataTable with the specified child DataRelation.

C#
public System.Data.DataView CreateChildView(System.Data.DataRelation relation);

Parameters

relation
DataRelation

The DataRelation object.

Returns

a DataView for the child DataTable.

Applies to

.NET 10 and other versions
Product Versions
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1

CreateChildView(String)

Source:
DataRowView.cs
Source:
DataRowView.cs
Source:
DataRowView.cs

Returns a DataView for the child DataTable with the specified child DataRelation name.

C#
public System.Data.DataView CreateChildView(string relationName);

Parameters

relationName
String

A string containing the DataRelation name.

Returns

a DataView for the child DataTable.

Applies to

.NET 10 and other versions
Product Versions
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1

CreateChildView(DataRelation, Boolean)

Source:
DataRowView.cs
Source:
DataRowView.cs
Source:
DataRowView.cs

Returns a DataView for the child DataTable with the specified DataRelation and parent.

C#
public System.Data.DataView CreateChildView(System.Data.DataRelation relation, bool followParent);

Parameters

relation
DataRelation

The DataRelation object.

followParent
Boolean

The parent object.

Returns

A DataView for the child DataTable.

Exceptions

relation is null.

Applies to

.NET 10 and other versions
Product Versions
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1

CreateChildView(String, Boolean)

Source:
DataRowView.cs
Source:
DataRowView.cs
Source:
DataRowView.cs

Returns a DataView for the child DataTable with the specified DataRelation name and parent.

C#
public System.Data.DataView CreateChildView(string relationName, bool followParent);

Parameters

relationName
String

A string containing the DataRelation name.

followParent
Boolean

true to keep the created child view in sync with the parent; otherwise, false.

Returns

a DataView for the child DataTable.

Applies to

.NET 10 and other versions
Product Versions
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1