Update: I have been working on this all night, and from what I have read, it seems that binding business layer to winforms is different than that of asp.net. I have tried to do it with no luck.
could someone sums up the basic steps to do: "Binding Business Objects to WinForms". I found many examples on the web that only binds a class that you define. What I need to know is how to bind a business logic that return a DataSet, or DataTable to winforms.
thanks.
older post is below:
--------------------------------
Hi there...
I created a 3 tier application, it contains:
1-DAL:data access layer
2-BL: business logic
3-VL: view layer
if VL is an ASP.NET project, then I can access the dataset successfully, and I can get the columns and the data. If I use WinForms instead, I can only see the name of the dataobject, and I can't see the columns nor the data. The code of DAL, and BL is not changed in both Projects.
I am guessing I am doing something wrong in the BL. Its code is as follows:
Imports System.ComponentModel
<DataObject()> _
Public Class TDTableObject
Private TDAdapter As DAL.TodoDataSetTableAdapters.TDTableAdapter = _
New DAL.TodoDataSetTableAdapters.TDTableAdapter
<DataObjectMethod(DataObjectMethodType.Select, True)> _
Public Function GetTDTable() As DAL.TodoDataSet.TDDataTable
Return TDAdapter.GetData
End Function
End Class
I am guessing I am doing something wrong when settings the attributes for the class of BL before using it in the windows forms project. Again this same code works perfectly fine in ASP.NET.
what am I missing?
thanks for any idea.