Information générale
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Remember that the setall method works if the object is refreshed so u should refresh each daughter grid as the main one scroll
>Hi Alessio
>
>>Personally I add a property (say nrec) to my grid class and stored in its afterRocolChange method this.nrec = recno(this.recordsource)
>>then set in its init method
>>this.setall("DynamicBackColor", "IIf(recno() = nrec,HighlightColour,NormalColour)),"column")
>>doing that u should only set the focus and then refresh each of your grid to have their current record highlighted.
>>HTH
>>Alessio
>
>Thanks for that. It works at the beginning but as soon as you select a different row in the grid it doesn't. The very 1st row in the grid remains highlighted. I admit to putting some of the code in the actual form's grid, rather than in the class, because I don't want this behaviour for all my grids om all my forms.
>
>Cheers
>
>Terry
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement