With Thisform.grdYourGrid .SetAll( "DynamicBackColor", "IIF( DateField = ldSelectedDate, ; RGB( 0, 0, 255), RGB( 255, 255, 255))", "Column") EndwithBut if you want a different colour for EACH date that's a bit trickier. I think you'd have to first evaluate all your indiv. dates, maybe putting them in an array. Then you could have a function to determine the colour, according to the date, which returns a char RGB() result string, and use this function in the Setall.
.SetAll( "DynamicBackColor", Thisform.lmGetColor(), "Column")HTH