I like to play with classes, you know... :)
>Nick,
>
>Been in the sandbox again?
>
>
>>... then download the
GridHighlighter class I just posted in Files Section/Classes - VCX.
>>
>>Forget adding properties and code in different places in the grid.
>>Forget creating special grid class with built-in highlight row functionality. You don't need to do it anymore.
>>
>>All you need to do:
>>
>>1. Drop the instance of GridHighlighter class beside your grid (at the same level that is)
>>
>>2. Set GridHighlighter1.cHostname property the same as your Grid.Name (i.e. "Grid1")
>>
>>3. Set the corresponding GridHighlighter properties if you don't like the default highlight color, or if you want to choose highlight OR boldface (default setting is both)
>>
>>4. Add
one line of code to your Grid.AfterRowColChange() event:
>>
>>this.parent.GridHighlighter1.Highlight_Row()
>>
>>5. Voila! There you go. :)
>>
>>See README.TXT for more details.
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro
"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison