Article View: pl.comp.lang.delphi
Article #35Re: Problem z DBGrid
From: str... Bolek Umnicki
Date: Fri, 12 Sep 1997 00:00
Date: Fri, 12 Sep 1997 00:00
32 lines
1108 bytes
1108 bytes
Dariusz Michalek pisze:
>Bolek Umnicki wrote:
>>
>> Komponent DBGrid ma mozliwosc kasowania rekordow przez Ctrl+Del. Jak
>> to mozna wyeliminowac?
>Wystarczy przejac zdarzenie OnKeyDown DBGrida i odfiltrowac klawisz
>VK_DELETE jesli wcisniety jest Ctrl.
>np:
>procedure TForm1.DBGrid1KeyDown(Sender: TObject; var Key: Word;
> Shift: TShiftState);
>begin
> if (Key = VK_DELETE) and (ssCtrl in Shift) then
> Key := 0;
>end;
Dzieki! Dziala. Ale rzeczywiscie DBGrid ma ceche ReadOnly (dzieki dla
Tomka Gnypa!), ktora zalatwia mi sprawe. Moje gapiostwo :)
>Pozdrawiam
>Darek
>D.Mic...@bsb.com.pl
Pozdrufka!
Bolek Umnicki - Legnica, POLAND
email: str...@polandmail.com
Technical Details
Message-ID:
<34197ef3.0@news.tpnet.pl>Path:
mbox-mo1.pugleaf.net!unknown!not-for-mailReferences:
<341794da.0@news.tpnet.pl> <3417AFA5.2FA539C9@bsb.com.pl>Show Full Headers
Complete Article Headers
From: str...@polandmail.com (Bolek Umnicki) Subject: Re: Problem z DBGrid Date: 1997/09/12 Message-ID: <34197ef3.0@news.tpnet.pl> X-Deja-AN: 272040914 References: <341794da.0@news.tpnet.pl> <3417AFA5.2FA539C9@bsb.com.pl> Reply-To: str...@polandmail.com Newsgroups: pl.comp.lang.delphi MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit