Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

FIND REOCRD THEN CHANGE COLOR OF ONLY THAT FOUND RECORD IN GRID

Status
Not open for further replies.

qw

Programmer
Oct 13, 2001
2
0
0
GB
i HAVE FIND THE RECORD BY
LOCATE COMMAND NOW i WANT TO HIGHTLIGHT THAT FOUND REORD IN GRID WITH DIFFERET COLOT TO MAKE DISTINGUISH
HOW CAN I DO THAT I GRID PLEASE WRITE FULL INSTRUCTION OR PORGRMME SO THAT I COULD DO IT EXACTLY
 
Hi

At the form level create a variable... say .. inRecNo and put the initial value as 0. Add the following codes in ..

MyGrid.InitEvent
================
DODEFAULT()
WITH THIS
.SetAll("DynamicBackColor", ;
"IIF(recno(This.RecordSource)=ThisForm.inRecno, ;
RGB(0,0,255),RGB(255,255,255))","COLUMN")
ENDWITH

MyGrid.AfterRowColChangeEvent
=============================
DODEFAULT()
ThisForm.inRecNo = RECNO()

This will make the back color of the row your are poiting to a different color than the rest of the records.

Hope this helps :)
ramani :-9
(Subramanian.G)
FoxAcc
ramani_g@yahoo.com
LET KNOW IF THIS HELPED. ENOUGH EXPERTS ARE HERE TO HELP YOU OUT! BEST OF LUCK :)
 
you can find more effective way for this download ghlp.zip
from Universalthread download section (gridhighlighter)it makes the row full highlight and when you search and find it makes the same... HTH Soykan OZCELIK
Comp.Prog / MSFoxPro Develper
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top