I am using dynamicbackcolor to set the row color of a grid green when
certain conditions apply. However the currently selected row/record still
appears with the white background.

Is there a way of keeping the background colour of the currently selected
row the same as the dynamicbackcolor, whether white or green?

Sincerely

Stephen

Re: Grid colors by Fred

Fred
Wed Dec 19 19:50:09 CST 2007

In the AfterRowColChange event, you can set the Grid.HighlightBackColor to
similar to your dynamic color property (just don't use the quotation marks).
You then also need to set grid.AllowCellSelection =.f., too.

--
Fred
Microsoft Visual FoxPro MVP


"Stephen Ibbs" <stephen@datadevelopments.co.uk> wrote in message
news:%23iTH07kQIHA.5016@TK2MSFTNGP06.phx.gbl...
>I am using dynamicbackcolor to set the row color of a grid green when
>certain conditions apply. However the currently selected row/record still
>appears with the white background.
>
> Is there a way of keeping the background colour of the currently selected
> row the same as the dynamicbackcolor, whether white or green?
>
> Sincerely
>
> Stephen
>
>



Re: Grid colors by Stephen

Stephen
Thu Dec 20 05:24:25 CST 2007

Thanks Fred - I found it.

Stephen

"Fred Taylor" <ftaylor@mvps.org!REMOVE> wrote in message
news:uHY5SqqQIHA.3556@TK2MSFTNGP03.phx.gbl...
> In the AfterRowColChange event, you can set the Grid.HighlightBackColor to
> similar to your dynamic color property (just don't use the quotation
> marks). You then also need to set grid.AllowCellSelection =.f., too.
>
> --
> Fred
> Microsoft Visual FoxPro MVP
>
>
> "Stephen Ibbs" <stephen@datadevelopments.co.uk> wrote in message
> news:%23iTH07kQIHA.5016@TK2MSFTNGP06.phx.gbl...
>>I am using dynamicbackcolor to set the row color of a grid green when
>>certain conditions apply. However the currently selected row/record still
>>appears with the white background.
>>
>> Is there a way of keeping the background colour of the currently selected
>> row the same as the dynamicbackcolor, whether white or green?
>>
>> Sincerely
>>
>> Stephen
>>
>>
>
>