Information générale
Catégorie:
Gestionnaire d'écran & Écrans
>I'm trying to highlight the selected record in the grid (color the activerow). I've been fiddling around with SetAll("DynamicBackColor" ... etc. No luck yet tho. Perhaps there's an easy way to those in the know ...!
What you need to do is have a property somehwere hold the RecNo() of the record source of your grid. Have it updated in the AfterRowColChange of the grid. Then, the Grid.Init() shoudl look like:
this.nRecno = recno(this.recordsource)
this.setall('dynamicbackcolor', 'iif(this.nRecNo = recno(this.recordsource), rgb(0, 0, 255), rgb(0, 0, 0))', 'column')
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