Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid current row Forecolor
Message
From
23/08/2004 07:12:35
 
 
To
22/08/2004 23:32:53
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00935441
Message ID:
00935495
Views:
24
I want to show grid current row with Forecolor=RGB(0,0,255).

Add a custom property to your grid class called nRecNo and initialize it to 0. This code in the grid's Init()
*** Set up for highlighting current row
This.nRecNo = RECNO( This.RecordSource )
This.SetAll( 'DynamicForeColor', ;
	'IIF( RECNO( This.RecordSource ) = This.nRecNo, RGB( 0, 0, 255 ), RGB( 0, 0, 0 ) )', 'COLUMN' )
And this code in AfterRowColChange():
Thisform.LockScreen = .T.
This.nRecNo = RECNO( This.RecordSource )
This.Refresh()
Thisform.LockScreen = .F.
Previous
Reply
Map
View

Click here to load this message in the networking platform