Hi, (LLBL 2.5/Adapter/SQL Srv 2.5/VB 2005/DevEx)
I can delete a row from a grid with reference to an index using:
CType(StaffBindingSource.DataSource(), EntityCollection(Of StaffEntity)).RemoveAt(idx)
but I need to specify its PK, as in
CType(StaffBindingSource.DataSource(), EntityCollection(Of StaffEntity)).Remove(rowPK)
but what is the syntax for avoiding this 'rowPK' error:
Value of type 'String' cannot be converted to 'MIS.DAL.EntityClasses.StaffEntity'
Pls note: I'm not trying to delete from the DB, just the collection that forms the datasource for the grid.
Thanks