I am beating my brain trying to figure out what I did wrong. I am using an infragistics grid. I am setting the isListSource property to true in the BO and binding the BO to the grid.
In the AfterRowUpdate event of the grid, I am calling BO.Save();
This works fine on another form. Records are added, deleted and modified just peachy, but on this one form, the save method gives me this error:
"The CurrentRow could not be evaluated because the CurrentRowIndex is out of range. Business object record count: 1. CurrentRowIndex: -1."
Does this error give you any clues as what I'm missing?
Thanks!
Basically, when the new PK was retrieved after an insert, the internal DataTable would raise its ListChanged event, and the business object would try to raise its property descriptor changed event (for 2-way binding) and the binding would try to refresh its value. But, the binding resides on the main thread, and the main thread is blocked while the update threads push the data to SQL Server, so the whole thing froze.
Give that new install a shot