Autor Beitrag
D. Annies
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 1843

windows 7
D6 Enterprise, D7 Pers und TD 2006
BeitragVerfasst: Fr 24.12.04 23:44 
Hi, Delpher!

Wie kann ich in einem Stringgrid die Zelleninhalte unsichtbar machen?
Die Inhalte der fixierten Zellen sollen sichtbar bleiben.

Ich schätze, mit TStringgrid(DbGrid).befehl gelingt das dann auch in einem
DBGrid.

Vielen Dank für Hilfe,
Detlef Annies
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: Sa 25.12.04 00:55 
Guck dir mal die OwnerDraw-Eigenschaft und das OnDrawCell-Ereignis der TStringGrid an.

@DBGrid: Ein Simpler Cast geht dort glaube nicht, da TDBGrid kein Nachfahre von TStringGrid ist (IIRC).

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.
.Chef
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1112



BeitragVerfasst: Sa 25.12.04 01:24 
BenBE hat folgendes geschrieben:
da TDBGrid kein Nachfahre von TStringGrid ist (IIRC).

Du "rememberst correctly". Der letzte gemeinsame Vorfahre von beiden ist TCustomGrid, danach trennen sich die Wege.

_________________
Die Antworten auf die 5 häufigsten Fragen:
1. Copy(), Pos(), Length() --- 2. DoubleBuffered:=True; --- 3. Application.ProcessMessages bzw. TThread --- 4. ShellExecute() --- 5. Keine Vergleiche von Real-Typen mit "="!
D. Annies Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 1843

windows 7
D6 Enterprise, D7 Pers und TD 2006
BeitragVerfasst: Mi 29.12.04 20:50 
Danke für eure Antworten, BENBE & CHEF !

Das hat jetzt geklappt!

Grüße von Detlef Annies