Bonjour,
Lazarus dispose d'un événement pratique pour valider ou annuler une saisie dans une grille :
Je ne pense pas qu'il existe d'équivalent sous Delphi.Validating Entered Values
Lazarus version 0.9.29 introduces the StringGrid OnValidateEntry event of type TValidateEntryEvent which has the following declaration:
TValidateEntryEvent = procedure(sender: TObject; aCol, aRow: Integer; const OldValue: string; var NewValue: string) of object;
Pour l'émuler, il doit falloir sauver l'ancienne valeur dans l'EnterCell, et déclencher l'événement dans l'ExitCell, ou y a-t-il une autre approche ?
Partager