update gridView problems

G

Guest

hey all,
i have a simple business class that encapsulates a typed dataset (Northwind
Employees)

Public Class DAL
Public _da As New DataSet1TableAdapters.EmployeesTableAdapter

Public Function GetEmployees() As DataSet1
Dim ds As DataSet1
ds = New DataSet1
_da.Fill(ds.Employees)
Return ds
End Function

Public Sub UpdateEmployees(ByVal ds As DataSet1)
_da.Update(ds)
End Sub
End Class

On the UI i configure the ObjectDataSource to use this class. the loading of
the gridview works fine, however, the edit fails with this message:

Could not find a property named 'LastName' on the type specified by the
DataObjectTypeName property in ObjectDataSource 'ObjectDataSource2'.

what am i missing? the edit works fine when i bind it directly to the dataset.

thanks,
rodchar
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,756
Messages
2,569,535
Members
45,008
Latest member
obedient dusk

Latest Threads

Top