Current ways to do data binding in .NET 3.5 with C# 3.0 and WinForms
Posted
by kryptic
on Stack Overflow
See other posts from Stack Overflow
or by kryptic
Published on 2010-05-25T18:07:26Z
Indexed on
2010/05/25
18:11 UTC
Read the original article
Hit count: 406
Hello Everyone,
I have an existing C# 3.0 WinForms project with .NET 3.5 that talks to a MySQL database. I would like to use data binding (I'm new to this, so I've been doing all of the UI updates manually) to simplify things.
I followed a link from this question to this article which mentions using a DataSet but also follows up with "my view on this topic is strongly in favor of Business Objects." Also that was with .NET 2.0.
What are the current methods to use data binding with a WinForms application? What are their advantages in terms of simplicity, how much additional code is necessary, etc.
For reference, I use an ORM approach to build objects with public properties from a database. I want to map these properties for each object onto UI elements like TextBoxes. There could be many properties for an object so I want to simplify the code to do this.
© Stack Overflow or respective owner