Chapter 7. Using DataTables

After completing this chapter, you will be able to:

  • Create DataTables by using the DataSet Designer.

  • Create DataTables at run time.

  • Add a DataTable to a DataSet at run time.

  • Configure DataTables.

  • Add and configure DataColumns.

  • Create DataTable Constraints.

  • Create and configure DataRows.

  • Use DataTable and DataRow methods.

We've been working with DataTables in the last few chapters without really examining them. In this chapter we'll finally take a detailed look at their structure, properties and methods.

Understanding DataTables

In Chapter 6 we defined a DataSet as an in-memory representation of relational data. DataTables contain the actual data within the DataSet. However, DataTables don't exist only within DataSets—they can ...

Get Microsoft® ADO.NET 2.0 Step by Step, 2nd 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.