Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Change BackColor in a grid
Message
From
06/08/2003 09:07:21
 
 
To
06/08/2003 05:45:29
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00817208
Message ID:
00817275
Views:
19
Hello Gloria.

How can I change the BackColor and ForeColor of row that is selected by clicking the check box?

This sample code assumes that the column with the check box is bound to a field named lSelected in the grid's RecordSource:
*** Set up for highlighting ALL Selected Rows
This.SetAll( 'DynamicForeColor', ;
	'IIF( lSelected, RGB( 0, 0, 128 ), RGB( 0, 0, 0 ) )', 'COLUMN' )
This.SetAll( 'DynamicBackColor', ;
	'IIF( lSelected, RGB( 0,255,255 ), RGB( 255, 255, 255 ) )', 'COLUMN' )
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform