O'Reilly logo

Microsoft® Visual Basic® .NET 2003 Kick Start by Joel Semeniuk, Erik Porter, Andy Baron, Duncan Mackenzie

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required