Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Highlighting a row in a grid
Message
From
16/10/2000 14:49:43
 
 
To
16/10/2000 13:04:05
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00429840
Message ID:
00429933
Views:
24
>When I select an item in my grid, only the cell I selected is highlighted. Is there a way to make the entire row appear selected?

YOu can use teh DynamicBackColor and DynamicForeColor properties.

First, you'll need a property on the grid, nRecNo. You populate this property with the current record number whenever you move rows in the grid and in the Init(). Make sure to refresh teh grid in AfterRowColChange(). And in the Init():
This.SetAll('DynamicBackColor', ;
	'iif(recno(This.RecordSource) = This.nRecno, rgb(0, 0, 128), rgb(255, 255, 255))', ;
	'Column')
This.SetAll('DynamicForeColor', ;
	'iif(recno(This.RecordSource) = This.nRecno, rgb(255, 255, 255), rgb(0, 0, 0))', ;
	'Column')
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform