Hi Tim.
>> Hi, I am trying to get a grid cell in a different color.
What I really want is that there is a narrow border around the cell,
but it would be acceptable if the color was changed inside the cell.
The best I can do is change the dynamicbackcolor and forecolor using something like: <<
Which grid cell(s) and under what conditions? Generally speaking, DynamicBackcolor and DynamicForecolor are used for things like displaying all the amounts less than zero with a red background or highlighted all the selected records in the grid. What is your objective here?
For example, if you wanted to display all the negative amounts with a red background, you would put something like this in the init of your grid:
This.SetAll( 'DynamicBackColor', ;
'IIF( MyRecordSource.MyField < 0, RGB( 255,0,0 ), RGB( 255, 255, 255 ) )', 'COLUMN' )