Check of entered text in TStringGrid
Posted on 2000-02-24
have a TStringGrid with
If the user set the focus from the actual cell to
somewhere else (to a different cell or eaven to a different control)
I need to check the users input at the cell he leaves this moment.
I try "OnSetEditText", but this event occurs immediately if the user
enters the first Char to the cell. (Ex.: the cells contain date-information,
and I want to check whether the entered date is a correct date...)
It exists a "private" procedure
procedure FocusCell(ACol, ARow: Longint; MoveAnchor: Boolean);
in TCustomGrid, if this whould be only "protected" and "virtual", it would
solve the problm, but unfortunately it isnt.
OK I could start to change VCL-Source for my needs, but first I would ask
if there is a solution without such an "operation".