Preventing deleting record in a DBGrid
Put code snippet bellow on the OnKeyDown event of the DBGrid.
procedure TForm1.DBGrid1KeyDown(Sender: TObject; var Key: Word;
Shift: TShiftState);
begin
if (ssctrl in shift) and (key=vk_delete) then key:=0;
end;
With the following code we can make transparent DBGrid. ...
The successor TDBGrid with the extended features. Is able to...
SQLMemTable is a simple and fast in-memory table and query f...
The PDJDBSearch is a invisible component for a quick searc...
TVirtualTable component is TDataSet descendant. It represen...
Thursday 15 Feb 2007 | Delphi Tutorial | Database