Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I changing entitle active row backcolor in grid?
Message
From
22/12/1999 11:13:00
 
 
To
22/12/1999 06:56:15
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00307196
Message ID:
00307340
Views:
22
Add a property to the grid class called nRecNo.

Put this in the grid class's init to highlight the current row in cyan.

This.nRecNo = RECNO( This.RecordSource )
This.SetAll( 'DynamicForeColor', ;
'IIF( RECNO( This.RecordSource ) = This.nRecNo, RGB( 0, 0, 128 ), RGB( 0, 0, 0 ) )', 'COLUMN' )
This.SetAll( 'DynamicBackColor', ;
'IIF( RECNO( This.RecordSource ) = This.nRecNo, RGB( 0,255,255 ), RGB( 255, 255, 255 ) )', 'COLUMN' )

and this in the AFterRowColChange:
WITH This
  .nRecNo = RECNO( .RecordSource )
  .Refresh()
ENDWITH
Marcia
Previous
Reply
Map
View

Click here to load this message in the networking platform