Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Color the active line in grid
Message
 
To
22/05/2005 07:39:17
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 8 SP1
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01016554
Message ID:
01016564
Views:
8
Help please,
How can I color the active line in grid and to uncolor it by passing to other line?


In VFP9 is easily.

One example:
In VFP8 make form's property 'Nrecno'
(for grid1: recordsourcetype = 1 and recordsource = rab)
In INIT of form put
thisForm.nRecNo = RecNo("rab")
thisform.grid1.SetAll("DynamicBackColor","IIF(RecNo('Rab')=thisform.nRecNo,RGB(64,128,128),RGB(192,192,192))","Column")
In thisform.grid1.afterRowColChange put
LPARAMETERS nColIndex
ThisForm.Nrecno = RECNO("rab")
ThisForm.Grid1.Refresh
_______________________________________________________________
Testing displays the presence, not the absence of bugs.
If a software application has to be designed, it has to be designed correctly!
_______________________________________________________________
Vladimir Zografski
Systems Analyst
Previous
Reply
Map
View

Click here to load this message in the networking platform