Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Highlight entire row on grid
Message
From
07/01/2003 06:09:50
 
 
To
06/01/2003 12:44:11
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00738413
Message ID:
00738692
Views:
32
I'd like to have a grid color an entire row say black on yellow that follows the recordmark on the grid.

Add a property called nRecNo to your grid class and initialize it to 0 in the propery sheet.

This code in the grid's Init()
This.nRecNo = RECNO( This.RecordSource )
This.SetAll( 'DynamicBackColor', ;
	'IIF( RECNO( This.RecordSource ) = This.nRecNo, RGB( 255, 255, 0 ), RGB( 255, 255, 255 ) )', 'COLUMN' )
This is the grid's AfterRowColChange:
Thisform.LockScreen = .T.
This.nRecNo = RECNO( This.RecordSource )
Thisform.Refresh()
Thisform.LockScreen = .F.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform