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

Grid Highlight Override for Specific Cells

Status
Not open for further replies.

megmogg

Programmer
Jul 14, 2005
76
GB
Hi all

This topic was started in thread1254-842507, but I wanted some clarification. I am using VFP8.

I have a grid with several columns.
I want column2 to display a different background colour dependant on a value the column's controlsource.

Therefore, from previous examples, I created a method at the form level and call it from the column:

Code:
thisform.grid1.column2.dynamicbackcolor="ThisForm.frm_check_colour(pval)"

The method returns the colour to display for that column only.


My problem is that the grid highlight row overrides it. When i select the row, it gets covered by the grid's highlight colour.

The grid properties are:

Code:
allowcellselection=.F.
highlightstyle=2


Any way around this?

Thanks


 
To update the thread....solved it, my mistake.

I set the sparse on the columns

Thanks

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top