Autor Beitrag
Mike19
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 256

Win XP, Vista, Win 7
Delphi 2005, Turbo Delphi
BeitragVerfasst: Sa 08.01.05 20:04 
Hallo,

wie kann ich beim editieren im DBGrid mit der Entertaste zur nächsten Spalte wechseln, ähnlich wie im Form ?[df][/df]
Socher
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 45

warmes flüssiges Blut
D7 Prof, D8 Prof
BeitragVerfasst: Fr 28.01.05 00:50 
Titel: DBGrid und Entertaste (Return)
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
// Zunächst geht der Record in den Editiermodus und dann in die nächste Spalte 

procedure TForm1.DBGrid1KeyDown(Sender: TObject; var Key: Word;
  Shift: TShiftState);
begin
if key = vk_return then key:=vk_right;
end;


Moderiert von user profile iconraziel: Delphi-Tags hinzugefügt

_________________
FREIHEIT