B
Hi,
OnDrawDataCell
void __fastcall TForm1::DBGrid1DrawDataCell(TObject *Sender,
const TRect &Rect, TField *Field, TGridDrawState State)
{
TDBGrid *dbg = dynamic_cast<TDBGrid *>(Sender);
int Index;
if (dbg && (dbg->Options.Contains(dgMultiSelect) &&
dbg->SelectedRows->Find(dbg->DataSource->DataSet->Bookmark, Index) ||
State.Contains(gdSelected)))
{
dbg->Canvas->Brush->Color = clRed;
dbg->DefaultDrawDataCell(Rect, Field, State);
}
}