Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

Share this Page URL

Chapter 12. ADO.NET Data Binding > Conclusion - Pg. 412

ADO.NET Data Binding 412 Figure 12-7. We can successfully find and delete records. Conclusion As you now see, ADO.NET is very different from the classic ADO we have been used to. The BindingContext object of a form manages the various CurrencyManager objects used to bind a table, a collection, or an array to a visual control. The BindingContext object ensures each of the individual CurrencyManager objects are synchronized when a new record is selected. To navigate through records, we manipulate the Position property of the BindingContext object. To bind a control to a column in a table, we simply add the table and field to the DataBindings collection of the individual control. Using this new knowledge, we learned how to navigate through a data table. We also learned how to dynamically build a data table. Our example included building new columns and specifying their properties, such as the data type it will hold and its name. Next we went on to add data to our new table on the fly and then learned how to find individual records that contained specific values. These are all the things that we are used to doing with classic ADO, but you will no