Using the CurrencyManager to Manage your Data Binding

Now that you've learned how to bind an entire table to a DataGrid and bind a table to a ComboBox for viewing one row at a time, the next step is to learn how to use the CurrencyManager. No, this has nothing to do with money. Currency refers to the current state, including the currently active row and mode (editing, adding, etc.) for a specific data source. Windows Forms has built-in support for keeping track of the current state of bound data on your form, and the CurrencyManager object exposes that state information to you. Using the methods and properties of the CurrencyManager object, you can add navigation support to your form.

For this demo, you are again going to use the Customers table ...

Get Microsoft® Visual Basic® .NET 2003 Kick Start 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.