Group: StrataFrame Users
Posts: 364,
Visits: 771
|
Well, there are a couple points here.
1) The IsDirtyChanged event will only be fired after saving for those rows that were dirty. This makes sense if you think about it. The IsDrityChanged event gets fired whenever a "clean" row becomes dirty or when a "dirty" row becomes clean. So if you aren't managing UI states automatically, and just start typing into a field bound to a populated BO, it will fire the IsDirtyChanged event. In the same token, if you go to save that row, the IsDirtyChanged event will be fired after the save since the row state is no longer dirty.
2) The Navigated event will not be fired during a save. The difference between "Navigate" and "Move" is that a navigate will update the bound controls. Since the save just iterates through the records in the BO so that it can CheckRulesOnCurrentRow it does not need to update the UI, and as such is performing a move, which will not fire the Navigated event.
So, it will iterate through your BO on a save and try to save any dirty records. The CurrentRowIndex will change in the middle of that iteration to reflect the movement through the BO, but once it is finished it will be restored to it's original position.
|