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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only