views:

1960

answers:

4

I've built some business objects, and I've built a "data access layer" that will read, update, delete, etc. Now I want to bind these objects to grids/text boxes/combo's etc in a WinForm's app.

I could do the manual method like:

txtName.Text = employee.Name;

and then on save do something like

employee.Name = txtName.Text;

But I'd much rather use the "RAD" features of VS 2008. I've done some googling but I'm not finding any quick tutorial that shows me what I need to do to my business objects to allow them to be "data bound". Can anyone help?

+3  A: 

Also have a look at
Windows Forms Object Data Binding in .NET 2.0

rajesh pillai
+4  A: 

Here is a nice tutorial on WinForms data binding:

Data Binding in .NET / C# Windows Forms

aku
A: 

Maybe you should get this book: ADO.NET 2.0 Step-By-Step

MarlonRibunal
+1  A: 

I think the article Create a Custom DataSource Quickly & Easily with C# 2.0 Iterators will help you do what you want.

link text

Khadaji