Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Focus on a grid
Message
De
09/10/1999 20:57:44
 
 
À
09/10/1999 17:22:04
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00274649
Message ID:
00274655
Vues:
18
>Can someone tell me how to highlight a row on the grid when the focus is on a textbox not on the grid. I am trying to do a search grid.

Well, you already received advice how to provide focus on the needed grid row. Now, the second part is how to 'highlight' (actually paint differently) current grid row:
*** grid.init event
thisform.grrecno=-1 && some form's property
this.recordsource='mycursor'
cLine="IIF(thisform.grrecno=recno('mycursor'),65535,16777215)"
this.setall("dynamicbackcolor",cLine,"column")
this.refresh
*** grid.beforerowcolchange event
thisform.grrecno=recno(this.recordsource)
*** grid.afterrowcolchange event
IF thisform.grrecno=recno(this.recordsource)
RETURN
ENDIF
thisform.grrecno=recno(this.recordsource)
this.refresh
Edward Pikman
Independent Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform