Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DBGRID - UPPERCASE!

Status
Not open for further replies.

selena1

Programmer
Apr 7, 2003
69
I have a Paradox database. I want to use only uppercase in my records. With components like: DBEdit, DBListBox, DBComboBox I don't have a trouble. But I don't know how to get only uppercase in component DBGrid. Can anybody help me, please?
Thanks!
 
You can always use Form.KeyPreview to upper-case everyting, or everything based on the .ActiveControl.

However, it seems like the simplest solution is:
Code:
procedure TForm1.DBGrid1KeyPress(Sender: TObject; var Key: Char);
begin
   Key := UpCase(Key);
end;

Cheers
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top