Si, e' associato.
questo e' il mio codice:
codice:
__fastcall TForm1::TForm1(TComponent* Owner)
: TForm(Owner)
{
Table1->Active = true;
}
void __fastcall TForm1::FormDestroy(TObject *Sender)
{
Table1->Active = false;
}
void __fastcall TForm1::DBGrid1DrawDataCell(TObject *Sender,
const TRect &Rect, TField *Field, TGridDrawState State)
{
ShowMessage ("CIAO");
if (Field->FieldName == "EVASO")
{
if (Field->AsBoolean == true)
DBGrid1->Canvas->Font->Color = clRed;
}
DBGrid1->DefaultDrawDataCell(Rect, Field, State);
}