Il fallait le dire plus tôt ;)
Soit tu récupères les données lorsque l'utilisateur appuyé sur la touche Entrée.
procedure TForm1.StringGridKeyDown(Sender: TObject; var Key: Word;
Shift: TShiftState);
begin
case Key of
VK_RETURN :
begin
ShowMessage( StringGrid.Cells[StringGrid.Selection.Left, StringGrid.Selection.Top]);
end;
end;
end;
soit tu captes tous les appuyes de touches dans une cellule, avec l'evenement OnSetEditText du TStringGrid.
procedure TForm1.StringGridSetEditText(Sender: TObject; ACol,
ARow: Integer; const Value: String);
begin
ShowMessage( StringGrid.Cells[ACol,ARow]);
// ou
ShowMessage(Value);
end;
Bonne Prog,
Olivier.