here is what i put in the afterrowcolchange of my gridClass
If Recno() # this.nrec
This.nrec = Recno()
this.Refresh()
EndIf
and that what i put in the init code :
if this.evidenzia && **
this.SetAll("DynamicBackColor","IIF(RECNO(this.recordsource) = this.nrec , this.bgevid ,this.bgnorm)","Column")
endif
** evidenzia is a property which tells the grid if it has to be highlighted
** bgevid is the colour i choose to highlight the row, Bgnorm is the normal backColor
It works fine to me , maybe you shoul setfocus the child grids.
Let me know , I'm going home know I'll be back tomorrow
>
Yes, they've always refreshed fine by themselves, because of the rel's set up in the DE. I just can't get the middle grid to highlight when I leave it. At least I've stopped the "bouncing" cursor on the middle grid. The AfterRowColChange code now stands as follows:
>
>
>* Need this bit to filter the data in the child grid of this
>Select pxCOMPLETE
>lnFacCatCode = FACCATCODE
>
>Select FACDESC
>If EMPTY( lnFacCatCode)
> Set Filter To
>Else
> lcFilter = "FAC_CAT_CODE = " + ALLTRIM( STR( lnFacCatCode)) + ;
> " OR EMPTY( FAC_CAT_CODE)"
> Set Filter To &lcFilter
>Endif
>Locate
>
>Select pxCOMPLETE
>
>This.Refresh()
>Thisform.LockScreen = .F.
>
>
>Can you see anything I'm missing?
>Cheers
>
>Terry
>
>>Remember that the setall method works if the object is refreshed so u should refresh each daughter grid as the main one scroll
>>