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!
MicroFour.StrataFrame.Data.DataBasics.DataSources(0).SetDebugOn(
Place the above code right after the ConnectionManager.SetConnections() in the SetDataSources() method in AppMain. This will create an HTML file with every SELECT, INSERT, UPDATE, and DELETE call made through the framework during the session. The file is updated before it is actually executed on the server, so even if it hangs, it should show up in the file.
The next question is what type of database are you using when this happens (also include what version)? Run the app in debug mode first and see if it clues you in to what is going on then we can go from there.