Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Highlight entire row on grid
Message
 
 
To
07/01/2003 06:09:50
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00738413
Message ID:
00738750
Views:
34
Hi Marcia,

I was trying to find your message how to determine Windows color scheme to use in highlighting (to append to your response), but didn't succeed. May be you can better find this message in yours? Or re-post it again, sorry?

I tried "grid selected" as my search parameter and you as a user...

>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.
>
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform