Otis wrote:
Why can't you cast the grid's datasource property's value to IEntityCollection and pass it to your BL? (or cast it to IEntityCollection2 and pass it to the adapter)
Changes in the grid were successfully persisted when I cast as follows:
Dim Divisions As New DivisionManager
Divisions.SaveDivisions(CType(BindingSource1.DataSource(), EntityCollection))
But
whenever I access a method in DivisionManager that instantiates a DataAccessAdapter (eg. Dim adapter As New DataAccessAdapter() ), Debug shows the following exception:
A first chance exception of type 'System.InvalidOperationException' occurred in System.dll
Any ideas?
Finally, is there another source of information that would have provided information about casting the Grid's data source property and avoided me asking the original question?
Thanks in advance, you've already been a great help.