More BindingSource WinForm Databinding frustrations
Posted by: Rick Strahls WebLog,
on 12 Jan 2006 |
View original
I'm once again getting stuck on WinForm DataBinding. I work primarily with forms that bind to entity business objects so the thing I do a lot of is binding textboxes, checkboxes etc. to business object properties. The new BindingSource object in VS.NET makes this relatively easy.
You drop a BindingSource object on the form
You add a Project DataSource and point it the Entity object
Note that the object must have properties not fields to bind to
You then add the data mapping to the control
Do...