PaidtheUmpire
Programmer
Hey Guys,
Is there any easy way of coloring a cell in a StringGrid?
This is what i want is as follows...
If the 2 if statements are both are successful then, into the Cell [a,b] the "XXXX" text will be inserted and the Cell will have to colored in clGreen.
Any ideas?
Thanks in advance...
Delphi, Delphi, Delphi. Oi! Oi! Oi!
Is there any easy way of coloring a cell in a StringGrid?
This is what i want is as follows...
If the 2 if statements are both are successful then, into the Cell [a,b] the "XXXX" text will be inserted and the Cell will have to colored in clGreen.
Code:
for a := 6 to 33 do
for b := 1 to SRows do
begin
If StrToDate(ScheduleGrid.Cells[a,0]) >= StrToDate(ScheduleGrid.Cells[4,b]) then
If ScheduleGrid.Cells[a,0] <= ScheduleGrid.Cells[5,b] then
ScheduleGrid.Cells[a,b] := 'XXX';
end;
Any ideas?
Thanks in advance...
Delphi, Delphi, Delphi. Oi! Oi! Oi!