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.
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement