Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Higlight the Grid Row
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00192281
Message ID:
00192356
Vues:
20
>Hello Friends
>
>I want to highlight my grid's entire curret row. I think this can be possible with dynamicforecolor/dynamicbackcolor . But not sure.
>Please help me
>Thankyou
>john still

yes, you can do by either adding a custom property to either the form or grid (if you subclass the grid) Ex: HiLiteRec. Default = 0

Then, in the init() of the grid...
This.SetAll( "DynamicBackColor",;
  "iif(Thisform.HiLiteRec=recno(This.RecordSource), ";
  "rgb(255,255,0) , rgb(255,255,255) )", "column" )"
Then, in the grids AfterRowColChange() event

LPARAMETERS nColIndex && This line is default for grid

dodefault( nColIndex ) && Allow grid to perform natural behavior
*/ recalibrate the new record position for grid hilight
*/ Lock screen for clean "snap" results in case large grid area
Thisform.LockScreen = .T.  
Thisform.HiLiteRec = recno( This.RecordSource )
This.Refresh()
Thisform.LockScreen = .F.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform