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
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