Luigi
Thanks again for the suggestion. Just 2 things:
1. On starting the form, i get the message "Expression is invalid. Use a vaid expression for DYNAMICBACKCOLOR". I don't understand this as the he command looks fine to me.
2. As suspected, setting the logical field to .F. for all but the current record,
Replace lSelected with .F. all
means the grid loses its focused record and the last row in the grid is selected (and no amount of clicking on a row will prize it off the bottom line.
Any clarrification?
Any other suggestions out there, guys?
TIA
Terry
>Terry,
>
>In the parent grid insert a logic field exempl. lselected, in the AfterRowChangeEvent set at .T. that record of parentdbf and all others to .F. in the refresh metod insert
>
>
>thisform.grid1.setall("dynamicbackcolor", "IIF(parentdbf.lselected= .f.,rgb(255,255,255), rgb(249,255,187))", "Column")
>
>
>Luigi
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.