Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

DataView.ToTable Method

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

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  Name Description
Public method ToTable() Creates and returns a new DataTable based on rows in an existing DataView.
Public method ToTable(String) Creates and returns a new DataTable based on rows in an existing DataView.
Public method ToTable(Boolean, String[]) Creates and returns a new DataTable based on rows in an existing DataView.
Public method ToTable(String, Boolean, String[]) Creates and returns a new DataTable based on rows in an existing DataView.
Top

The returned DataTable maintains the values of the following properties from the source DataTable: Namespace, Prefix, 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.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.