AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Thema durchsuchen
Ansicht
Themen-Optionen

DBGrid und MultiSelect

Ein Thema von Rolf.Blessing · begonnen am 16. Mai 2007 · letzter Beitrag vom 16. Mai 2007
 
s-off
(Gast)

n/a Beiträge
 
#3

Re: DBGrid und MultiSelect

  Alt 16. Mai 2007, 10:48
Hi,

probier ess mal so:

Delphi-Quellcode:
Procedure TForm1.DBGrid1KeyDown(Sender: TObject; Var Key: Word; Shift: TShiftState);
Begin
   If Key = VK_RETURN Then
      DBGrid1.SelectedRows.CurrentRowSelected := True

   Else If Key = VK_DOWN Then Begin
      DBGrid1.DataSource.DataSet.MoveBy(1);
      Key := 0;
   End

   Else If Key = VK_UP Then Begin
      DBGrid1.DataSource.DataSet.MoveBy(-1);
      Key := 0;
   End;
End;
Edit: @Uwe - Der Ansatz ist schon ok, nur die Problematik sind wohl die Cursortasten ;o)
  Mit Zitat antworten Zitat
 


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 12:26 Uhr.
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz