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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Grid Row highlight 1

Status
Not open for further replies.

dakotafox

Programmer
Apr 14, 2000
53
US
Want the entire row backcolor changed to match the cell back color when the cell in the first column is selected. Highlight .t. only gives outline color.

Thanks
 
1. IN THE FORM create a property called inRecNo with 0 as initial value.
2. In the Init Event of the Grid PUT THE CODE
This.SetAll("DynamicBackColor", ;
"IIF(recno(This.RecordSource)=THISFORM.inRecno, ;
RGB(0,255,0),RGB(255,255,192))","COLUMN")
3. In the AfterRowColChange event of the Grid.. put the code
ThisForm.inRecNo = RECNO()

This example will get you the idea to put your requirement
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 :)
 
Hello,

You may also try to download GridHighlighter class from Is made by Nick Necklioudov. Very good class (I use it also).

In fact, every time I have the opportunity to reccomend somebody else's work, I'll do, because I have to reivent the wheel. Is hard to believe that someone wich needs something will do a better job than somewone which does that job for long time.

Hope this helps Grigore Dolghin
Class Software
Bucharest, Romania
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top