Autor Beitrag
JoelH
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 806
Erhaltene Danke: 17

Win10
Delphi Alexandria 11.2 Patch 1
BeitragVerfasst: Fr 03.12.04 11:53 
Man soll ja nicht mehr onDrawDataCell verwenden, weil es veraltet ist, sondern onDrawColumnCell. Mein Problem ist nun wo bekomme ich das TField in der DrawColumnCell her welches ich in der DrawDataCell habe.

_________________
mfg. Joel
rochus
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 416

Win XP Prof, Fedora Core 4, SuSE 7.0
D7 Ent, D2005 Pers
BeitragVerfasst: Do 09.12.04 13:54 
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
procedure TForm1.DBGrid1DrawColumnCell(Sender: TObject; const Rect: TRect;
  DataCol: Integer; Column: TColumn; State: TGridDrawState);
begin
   if Column.FieldName = 'Mein Feld' then
      Column.Field.AsString := 'Dein Feld!';
end;

_________________
Im Nachhinein ist man immer ein Schlauch!
"Dream as if you'll live forever, live as if you'll die today!" James Dean