DBGrid -> Schriftfarbe einer Zelle ändern?
-
Hallo,
ich möchte gerne die Schriftfarbe einzelner Zellen ändern. Leider färbt mein Code die komplette Zelle ein und nicht nur die Schrift.
Hier mein Code:
if(f_start->ADOQuery1_Darlehen->RecordCount > 0) { if (f_start->ADOQuery1_Darlehen->FieldByName("BETRAG")->AsCurrency > 0) { // Betrag ist Darlehen DBGrid1->Columns->Items[3]->Color = clRed; DBGrid1->DefaultDrawColumnCell(Rect, DataCol, Column, State); } }
Habe über die Suche leider nichts gefunden und bitte deshalb um Hilfe.
LG Maik
-
vielleicht hilft das:
http://www.c-plusplus.net/forum/viewtopic-var-t-is-266177-and-highlight-is-%2Adbgrid%2A.html
oder http://www.c-plusplus.net/forum/viewtopic-var-t-is-264416-and-highlight-is-%2Adbgrid%2A.html
oder http://www.c-plusplus.net/forum/viewtopic-var-t-is-164508-and-start-is-0-and-postdays-is-0-and-postorder-is-asc-and-highlight-is-%2Adbgrid%2A.html
oder http://www.c-plusplus.net/forum/viewtopic-var-t-is-137388-and-start-is-10-and-postdays-is-0-and-postorder-is-asc-and-highlight-is-%2Adbgrid%2A.html
oder http://www.c-plusplus.net/forum/viewtopic-var-t-is-146951-and-start-is-0-and-postdays-is-0-and-postorder-is-asc-and-highlight-is-%2Adbgrid%2A.html