Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problems with GRID
Message
From
20/08/1999 08:35:24
 
 
To
20/08/1999 05:42:16
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00255741
Message ID:
00255796
Views:
12
Hi, Vladimir,

For the whole row highlighting try the next approach:

1) Define somewhere a variable for storing the
current record number (it also can be a form's property,
e.g., ThisForm.HighRec).

2) In the grid's Init() method write:
This.setall('DynamicBackColor',;
"IIF(RECNO()<>ThisForm.highrec,RGB(255,255,255),RGB(192,192,192))",;
"Column")
This.setall('DynamicForeColor',;
"IIF(RECNO()<>ThisForm.highrec,RGB(0,0,0),RGB(255,255,255))",;
"Column")

3) In the grid's AfterRowColChange() put:
LPARAMETERS nColIndex
ThisForm.Highrec=RECNO()
ThisForm.Grid1.Refresh()

And that's all. Of course, you can biuld a class based on grid
using above mentioned approach.

Best regards.
Previous
Reply
Map
View

Click here to load this message in the networking platform