Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changing backcolor of row on grid
Message
From
12/07/2001 11:26:44
 
 
To
12/07/2001 10:58:33
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00529732
Message ID:
00529749
Views:
8
>I want to change the backcolor of the currently selected row in a grid to highlight it.

make a variable available to the grid with the recno() of the currently highlighted row, say _currec=recno()...

in the DynamicBackColor property of each column in the grid place the following code:

IIF(recno()<>_currec,RGB(255,255,255),RGB(192,220,192))

in the AfterRowColChange method of the grid the following code:

_currec = recno()
this.refresh

change the RGB(192,220,192) to whatever color value you prefer for the background color.
On a CLEAR day you can see forever.
Previous
Reply
Map
View

Click here to load this message in the networking platform