General information
Title:
Best Practices BindingContext vs. CurrencyManager
I am learning ADO/VB.Net with WinForms. In MS Press and other books I have studied there are a lot of examples of Winform apps that use CurrencyManager for adding and deleting rows and navigating through records, with commands such as:
CurrencyManager.AddNew
CurrencyManager.Position = 0, etc.
I am currently studying ".Net for Visual Foxpro Developers" by Kevin McNeish, which gives the best real-world examples of building applications and is the most well-written. It also gives a rudimentary framework for database applications which I would like to use as a base for my applications. But the word "CurrencyManager" is not mentioned in the entire book, nor is it used in the framework examples. In his examples the BindingContext object is used for navigation with commands like this:
Me.BindingContext(Me.dsOrders, "Orders").Position = 0
And the datarow and table objects are used directly for adding new rows, etc.
Can real WinForm apps really be written without use of the CurrencyManager? If so, am I better off not using it at all? Or am I heading for a crash because it's use is not optional? I'm a newbie, so I would love any experience or recommendations you might have - I expect to put hundreds of hours into constructing/debugging my own basic framework techniques.
Don Meuse
Spectrum Software
Miami, Florida, USA
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only