Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Highlighting a row in a grid
Message
From
16/11/2004 10:21:02
 
 
To
16/11/2004 09:00:53
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00961404
Message ID:
00961716
Views:
7
Luigi

Multe grazies

That works a treat. I suppose putting it in the form's refresh was what I was missing (I had considered the storing the RECNO() etc.). The grid maintains the row's dynamic colour after moving to the next grid so that's fine.

Now, as I've colour-coded the key fields in my grid, I've just got to adapt the code so only the other columns change colour.

Ciao

Terry

>Terry
>
>in AfterRowChangeEvent of the grid
>
>
>thisrecord= recno()
>select PXENTRYCODES
>replace all PXENTRYCODES.lSELECTED with .f.
>goto thisrecord
>replace PXENTRYCODES.lSELECTED with .t.
>thisform.refresh
>
>
>when you click with mouse on a row it will be selected
>
>in the refresh method of the form
>
>
>thisform.grid1.setall( "dynamicbackcolor", "IIF( PXENTRYCODES.lSELECTED = .F., RGB( 255, 255, 255), RGB( 255,255,128))", "Column")
>
>
>
>Luigi
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.
Previous
Reply
Map
View

Click here to load this message in the networking platform