Autor Beitrag
delphijanka
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 151

WinXP
D 2009 Arc., Java, C
BeitragVerfasst: Do 27.08.09 16:08 
Hallo.

Wie kann ich in einem StringGrid Multiselect deaktivieren, wobei aber 1-Zeile-Select weiterhin funtionieren soll? Das heisst, bei gedrücker Maustaste soll nur die aktuelle Zeile markiert sein.

Danke.
Lannes
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2352
Erhaltene Danke: 4

Win XP, 95, 3.11, IE6
D3 Prof, D4 Standard, D2005 PE, TurboDelphi, Lazarus, D2010
BeitragVerfasst: Fr 28.08.09 23:02 
Hallo,

weis nicht ob Du genau das meinst.
Dadurch kann nur noch eine Zeile markiert werden, die Editierbarkeit durch den Anwender wird aber auch damit ausgeschlossen:
ausblenden Delphi-Quelltext
1:
2:
Grid.Options := Grid.Options - [goRangeSelect];
Grid.Options := Grid.Options + [goRowSelect];

_________________
MfG Lannes
(Nichts ist nicht Nichts) and ('' <> nil ) and (Pointer('') = nil ) and (@('') <> nil )
delphijanka Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 151

WinXP
D 2009 Arc., Java, C
BeitragVerfasst: Mo 31.08.09 11:56 
Danke Lannes,

goRangeSelect sollte deaktiviert werden, dat habe ich gar net bemerkt.