I am trying to assign a color depending on the cell value of a dataset. The following code works well for row coloring when DBGrid is in gsReport mode (OnCellColoring) but does not work when gsSlide (OnSlideColoring) is set:
CODE
if DataSource1.DataSet.FieldByName('mDays').AsInteger <= -1 then
SlideColor := clRed;
if DataSource1.DataSet.FieldByName('mDays').AsInteger = 0 then
SlideColor := clInfobk;
if DataSource1.DataSet.FieldByName('mDays').AsInteger >= 1 then
SlideColor := clGreen;
Any hint on that?
Many thanks
coasting











