Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Tore Bleken
  Where is Tore Bleken?
 Stokke
 Norway
 Tore Bleken
 To: Bob Gatto
  Where is Bob Gatto?
 Hawthorne
 New Jersey - United States
 Bob Gatto
 Tags
Subject: RE: Highlighting a grid all the way
Thread ID: 396123 Message ID: 396129 # Views: 44 # Ratings: 0
Version: Visual FoxPro 9 SP2 Category: Grids
Date: Wednesday, January 22, 2014 10:49:25 PM         
   


> >
> > Yourgrid.HighlightStyle=1 && Or 2, if that's what you need.
> >
> > There's a fine line between helping and adding to the confusion.
> >
> > How to create sample data
>
> Hello Tore,
>
> I tried that and I'm still having that problem. Here are my highlight properties:
>
> Highlight = .T.
> HighlightBackColor = 0,0,255
> HighlightForeColor = 255,255,255
> HighlightRow = .T.
> HighlightRowLineWidth = 1
> HighlightStyle = 1
>
> Any other suggestions?
>
> Bob Gatto

I misunderstood. Try this:

With yourgrid
   .HighlightForeColor = .SelectedItemForeColor 
   .HighlightBackColor = .SelectedItemBackColor 
Endwith

Or you may have to reverse the order, I don't quite remember and don't have the time to test.

With yourgrid
   .SelectedItemForeColor = .HighlightForeColor
   .SelectedItemBackColor = .HighlightBackColor 
Endwith

There's a fine line between helping and adding to the confusion.

How to create sample data

ENTIRE THREAD

Highlighting a grid all the way Posted by Bob Gatto @ 1/22/2014 10:17:07 PM
RE: Highlighting a grid all the way Posted by Tore Bleken @ 1/22/2014 10:23:29 PM
RE: Highlighting a grid all the way Posted by Bob Gatto @ 1/22/2014 10:43:56 PM
RE: Highlighting a grid all the way Posted by Tore Bleken @ 1/22/2014 10:49:25 PM
RE: Highlighting a grid all the way Posted by David Mustakim @ 1/22/2014 10:59:56 PM
RE: Highlighting a grid all the way Posted by Jun Tangunan @ 1/23/2014 5:22:56 AM
RE: Highlighting a grid all the way Posted by Borislav Borissov @ 1/22/2014 10:52:54 PM
RE: Highlighting a grid all the way Posted by Paul Gibson @ 1/23/2014 2:21:16 PM
RE: Highlighting a grid all the way Posted by Pete Sass @ 1/22/2014 11:48:20 PM