by Jon Kruger
Feedback
|
Average Rating: This article has not yet been rated.
Views (Total / Last 10 Days):
33125/
33
|
|
|
Downloads |
|
|
|
User Comments
Title:
Easy open source alternative to data binding
Name:
Michael L Perry
Date:
2008-04-09 10:29:50 PM
Comment:
Data binding can be complicated and error prone. Thanks for posting this quick guidance on making it simpler.
There is, however, and easier way. Please check out this open source alternative to data binding at http://codeplex.com/updatecontrols. Update Controls are Windows Forms controls that update themselves when your data changes. You don't have to bind the controls through a binding source. They can work with any business logic you want to use.
To use Update Controls, you don't bind to a property. Instead, you handle an event. For example, the UpdateTextBox control fires the GetText event to determine what string to display. You can call any business logic to figure out this string. The control pays attention to all of the data that you access during that event. When that data changes, the event is fired again. It's all automatic, and works with any business logic, no matter how complex or indirect.
|
|
Product Spotlight
|
|