22.5. Working with DataTables

The DataTable type defines many members, many of which are identical in name and functionality to those of the DataSet. Table 22-7 describes some core members of the DataTable type beyond Rows and Columns.

Table 22.7. Key Members of the DataTable Type
MemberMeaning in Life
CaseSensitiveIndicates whether string comparisons within the table are case sensitive. The default value is false.
ChildRelationsReturns the collection of child relations for this DataTable (if any).
ConstraintsGets the collection of constraints maintained by the table.
Copy()A method that copies the schema and data of a given DataTable into a new instance.
DataSetGets the DataSet that contains this table (if any).
DefaultViewGets a customized view of ...

Get Pro C# 2010 and the .NET 4 Platform, Fifth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.