In this chapter, you learned about ADO.NET object events and how to handle them. Events are useful to notify an action taken by an object. The Connection object has two InfoMessage and StateChange events. The DataAdapter provides FillError, UpdateChanging, and UpdateChanged events. The DataSet has only one event—MergeFailed. The DataTable provides events raises during column and row changes and row deletions. XmlDataDocument provides events relating to adding, changing, and removing XML document nodes. The DataView and DataViewManager define the ListChanged event, which occurs when a row is added to or deleted from a DataView or from a DataViewManager.

After finishing this chapter, you should have a good idea of the events model of ADO.NET components and how to handle events in your applications.

In next chapter, you'll see how XML is tied to ADO.NET and how you can take advantage of the ADO.NET model to read to and write data from XML documents.

Applied ADO. NET(c) Building Data-Driven Solutions
Applied ADO.NET: Building Data-Driven Solutions
ISBN: 1590590732
EAN: 2147483647
Year: 2006
Pages: 214 © 2008-2017.
If you may any questions please contact us: