procedure TForm1.StringGrid1KeyPress(Sender: TObject; var Key: Char); begin if Key in ['0'..'9'] then Key := #0; end;