ToTable Method

DataView.ToTable Method

 

Creates and returns a new DataTable based on rows in an existing DataView.

Namespace:   System.Data
Assembly:  System.Data (in System.Data.dll)

NameDescription
System_CAPS_pubmethodToTable()

Creates and returns a new DataTable based on rows in an existing DataView.

System_CAPS_pubmethodToTable(Boolean, String[])

Creates and returns a new DataTable based on rows in an existing DataView.

System_CAPS_pubmethodToTable(String)

Creates and returns a new DataTable based on rows in an existing DataView.

System_CAPS_pubmethodToTable(String, Boolean, String[])

Creates and returns a new DataTable based on rows in an existing DataView.

The returned DataTable maintains the values of the following properties from the source DataTable: Namespace, Prefix, P:System.Data.DataTable.CultureInfo, and CaseSensitive. Each column in the resulting DataTable contains an identical copy of all the corresponding properties in the underlying DataTable.

The DataRow instances in the returned DataTable will contain values that are consistent with CLR semantics. That is, for all data types besides user-defined types, the corresponding column values are copied by value. For user-defined data types, the column data is copied by reference.

Return to top
Show:
© 2016 Microsoft