Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why my AfterRowColChange not functioning properly
Message
De
17/11/2004 12:17:13
 
 
À
17/11/2004 12:07:49
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
00962129
Message ID:
00962267
Vues:
9
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()          && Only place I can think of to force a refresh here.
>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
>>
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform