In my SetDefaultValues event handler in my business object, I am seeing the CurrentRowIndex change as soon as a field value is set in the SetDefaultValues handler. In my case I have no sorting applied or filtering -- the Sort and Filter properties are both blank. The scenario is that I have my business object used as a grid data source via a BBS, but I even tried clearing the grid sorting/filtering before adding a new row just to see if that was the cause. I am seeing this across my application, and it appears to have just popped up since I upgraded to the beta version that Trent gave me of 1.6.7. What I have is code like this:
Private Sub HolidaysBO_SetDefaultValues
Me.Date = Today
End Sub
I can set a breakpoint on the assignment line, and before the assignment the CurrentRowIndex is the newly added row. As soon as the assignment is made and I step through the line of code, the CurrentRowIndex changes. To go further, the EditingState is Idle when it should be Adding. This was all working as designed until my upgrade, so I'm wondering if this is perhaps a bug?