Groups | Blog | Home
all groups > dotnet windows forms databinding > june 2007 >

dotnet windows forms databinding : binding source in a 3 layered aplication


Fanor
6/22/2007 3:38:42 PM
Hi all,


I have a windowsform (not an ASP .net) aplication with a data layer, a
business layer, and a presentation layer.
one business class has 5 metods; GetEmployees, GetEmployeeByID,
DeleteEmployee, UpdateEmployee, and AddEmployee.
I have a form with a grid control for the employees table, and a
bindingsource and a bindingnavigator objects.

I want the bindingsource's data source to be bound to the business layer
instead to the dataset, is that possible??
There is no problem when

mybindingsource.datasource = mydataset
mybindingsource.member= employees


But in that case they are calling the data layer instead of the business
layer.

Do you guys knows of any example or sugestions?

TIA





RobinS
7/5/2007 2:24:22 PM
Check out Deborah Kurata's book, "Doing Objects in VB2005". THis shows you
how to do exactly what you are trying to do, in the most efficient way
possible. Even if you're a C# programmer, you will get a lot out of it. I
use it as the basis for most of business apps I write nowadays.

Robin S.
-----------------------------------
[quoted text, click to view]

AddThis Social Bookmark Button