Autor Beitrag
anno
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 20



BeitragVerfasst: Do 29.11.07 13:46 
hallo zusammen,

wie kann ich denn in einem stringgrid eine einzelne Zeile komplett deaktivieren, sie soll also nicht bearbeitbar sein.

wenn ich z.b. die 3. zeile deaktiviere, sollen allerdings die 2. und 4. noch editierbar sein.

vielen dank im voraus.

gruß

anno


Moderiert von user profile iconNarses: Topic aus Delphi Language (Object-Pascal) / CLX verschoben am Do 29.11.2007 um 19:56
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: Do 29.11.07 18:52 
Hallo,

im Ereignis OnSelectCell kann man die Ereignis-Variable Row auswerten und dann die Ereignis-Variable CanSelect entsprechend setzen.

_________________
MfG Lannes
(Nichts ist nicht Nichts) and ('' <> nil ) and (Pointer('') = nil ) and (@('') <> nil )