Good day all,
This is a thorny one but I will try to outline it without code - there is too much of it.
In my ticketing system I made a design decision that all static definitons cannot be amended after they participate in a revenue earning transaction. From that point on the only allowed change is to the row's end date.
On my stage definition form, I have two data grids, the StageMaster and StagePrice
StageMaster has all the stage definitions and for StagePrice is repopulated to show all the pricing data for the currently selected StageMaster row.
For both grids, I check a 'Stage_In_Use' flag on as part of the relevant RowEnter event which sets my chosen fields to readonly.
This works very well for StagePrice, but not StageMaster. It fails because it results in a reentrant call to the SetCurrentAddressCoreFunction.
I think this is because StageMaster has 'focus' and I must be violating one of the conditions where the cell the module tries to enter is not editable.
RowEnter is called three times (all for the first row) before the from is displayed.
My aim is to only activate the check after the form is on screen, how do I do this or is there another approach I should be looking at?