Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Higlight the Grid Row
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00192281
Message ID:
00192356
Views:
21
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform