Day 5. Changing Data

for RuBoard

Over the last two days, you've delved pretty deeply into the DataSet in order to understand the various ways you can work with it programmatically and how it is structured. During that time, you've seen several examples of data modifications and how they are represented without being given the big picture. Today, you'll put the pieces together in a shorter lesson to form a complete picture of how and when changes are tracked in a DataSet .

Although today's discussion will focus on modifying data, it won't discuss how data is actually synchronized with the underlying data store. That discussion will have to wait for Day 12, "Using Data Adapters," when you learn about data adapters.

However, today you'll learn the following concepts:

  • How row states and row versions are tracked

  • How the GetChanges method is used to filter rows

  • What a DiffGram is and how it is used by a DataSet

  • When and why to call the AcceptChanges , RejectChanges , and Reset methods of the objects within a DataSet

for RuBoard


Sams Teach Yourself Ado. Net in 21 Days
Sams Teach Yourself ADO.NET in 21 Days
ISBN: 0672323869
EAN: 2147483647
Year: 2002
Pages: 158
Authors: Dan Fox

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net