Chapter 10. Editing and Updating Data

After completing this chapter, you will be able to:

  • Use the RowState property of a DataRow.

  • Retrieve a specific version of a DataRow.

  • Add a DataRow to a DataTable.

  • Delete a DataRow from a DataTable.

  • Edit a DataRow.

  • Temporarily suspend enforcement of constraints during updates.

  • Accept and reject changes to data.

In the previous few chapters, we've examined each of the Microsoft ADO.NET objects in turn. Starting with this chapter, we'll look at how these objects work together to perform specific tasks. Specifically, in this chapter we'll examine the process of editing and updating data.

Understanding the Editing and Updating Process

Given e disconnected architecture of ADO.NET, there are four distinct phases to the process ...

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.