Autor Beitrag
Josef-B
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 293

2003 Server, Win7, Win8
Delphi 2010 Pro, Firebird 2.5
BeitragVerfasst: Sa 12.06.04 15:02 
Hab mal wieder ne Anfängerfrage:

Im DbGrid ist ja standardmäßig nur immer die aktuelle Zelle markiert. Wie mache ich das am einfachsten, dass immer gleich die Zeile farbig markiert ist?
CenBells
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1547

Win 7
Delphi XE5 Pro
BeitragVerfasst: So 13.06.04 10:15 
Hallo,

es gibt die Option goRowSelect. Setz die im Objektinspektor auf true und du erhältst dein gewünschtes ergebnis.

Gruß
Ken

_________________
Eine Klasse beschreibt die Struktur und das Verhalten einer Menge gleichartiger Objekte.
Josef-B Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 293

2003 Server, Win7, Win8
Delphi 2010 Pro, Firebird 2.5
BeitragVerfasst: So 13.06.04 13:28 
hab das gorowSelect mal in die Hilfe eingegeben. Ich blick das nicht so richtig, wie man diese Option setzt.

Kann Du bitte noch den Code posten?
CenBells
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1547

Win 7
Delphi XE5 Pro
BeitragVerfasst: So 13.06.04 14:35 
Hi,

nix code dafür nötig. ;)

Einfach im Objektinspektor die Eigenschaft Options aufklappen und dann goRowSelect auf true setzen.

Mit code geht es auch...
ausblenden Delphi-Quelltext
1:
deinStringGrid.options :=  deinStringGrid.options + [goRowSelect];					


Gruß
Ken

_________________
Eine Klasse beschreibt die Struktur und das Verhalten einer Menge gleichartiger Objekte.
Josef-B Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 293

2003 Server, Win7, Win8
Delphi 2010 Pro, Firebird 2.5
BeitragVerfasst: So 13.06.04 21:17 
Ja, danke. Klappt.