Having trouble getting my grid to only restrict entry to the current row. Does anyone else do this?
I'm allowing the user to click an Edit button and then trying to enable the current control which is normally disabled.
This almost works, but a couple things happen - the highlight that
I use does not display when the control is not enabled and if it is enabled it is enabled for all rows.
The solution is to disable the grid without disable the column,
but VFP copy Grid Enabled into all columns Enabled and any Column Enabled into all controls Enabled
( One absurd what, it simplified the graphical operations, but destroy all the Enabled configuration into
a grid )
Another way is:
Procedure Grid.When
IF GridIsDisabledCondition
RETURN .F.
ENDIF
I want to retain my highlighting when not editing the control and restrict movement to another row unless the Save button has been clicked. Just can't seem to get my thoughts around this one.
PROCEDURE Grid.BeforeRowColChange
IF BITTEST(m.this.RowColChange,0)
NODEFAULT
RETURN
ENDIF