I have a TLMDDBGrid, and one of the columns contains a date. I currently have this code
if (AColumn->FieldName == "LastTimeHere")
{
AnsiString Data = AFormattedData.VOleStr;
int Slash = Data.Pos("/");
if (Slash)
{
// Code to determine if the date is in a certain range, if it is I want the background YELLOW
// Want to make the cell background Yellow, this is where I need help!
// With a normal TDBGrid
//Canvas->Brush->Color = clYellow;
//DBGrid->DefaultDrawColumnCell(Rect, DataCol, Column, State);
// I need to know how to do the DefaultDrawColumnCell with the LMD DBGrid
}
}
Thanks!
Doug
Comments