Sorry for the slow response. I guess I missed this post. At what point are you getting the error message? Can you give me a code snippet?
{"The CurrentRow could not be evaluated because the CurrentRowIndex is out of range. Business object record count: 1. CurrentRowIndex: -1."}
Any idea what would cause this? I can add records to a table that already has records, but not to a blank table.
For example, the code below changes the field through the weak typed ADO.NET data table instead of using the strong-typed properties of the BO.
MyBO.CurrentDataTable.Rows(0).Item("my_field") = "Testing"
This will change the contents of the field and the business object will still know that a save is required just as though it had been changed through a strong-typed property or an SF control.
If MyBO.IsDirty Then MyBO.Save()End If
So if you use ADO.NET data binding to the DevExpress grid, the BO will still function properly. But you will still be required to manually call the Save() method on the BO to save commit the changes back to the server.