Autor Beitrag
Klaus D.
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 63



BeitragVerfasst: Fr 17.12.04 21:03 
Moin
wie setze ich einen Focus in einem DBGrid ?
ausblenden Delphi-Quelltext
1:
GridL.Columns[3].SetFocus					
....geht nicht
MfG...Klaus

Moderiert von user profile iconChristian S.: Code- durch Delphi-Tags ersetzt.
hansa
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3079
Erhaltene Danke: 9



BeitragVerfasst: Fr 17.12.04 21:17 
Col := 3;
Row := ????

_________________
Gruß
Hansa
LCS
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1305
Erhaltene Danke: 1

WIN 7, WIN 8
Delphi XE5, Delphi XE, Delphi 2007
BeitragVerfasst: Sa 18.12.04 11:15 
Hi
im DBGrid verwendest du .SelectedIndex (oder .SelectedField] um auf ein Feld in der aktuellen Zeilen zu positionieren.
Die aktuelle Zeile wird durch den aktuellen Datensatz in der zugrundeliegenden Datenmenge bestimmt.

Gruss Lothar

_________________
Der BH ist für die Brust, der Plan ist für'n Ar...