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

Change the cell color for a single cell in grid

Status
Not open for further replies.

Aseem1234

Programmer
Nov 26, 2003
33
0
0
US
Hi,

Is there a way to change the background color for just one cell in a grid? I want to change the color of a single cell as information is updated in the cell.

Thanks,

Aseem
 
and is there a way to have just one cell have it's background color changed when the user clicks on a row, instead of the entire row's color being changed?
 
The answer greatly depend on the version of VFP you are running. Now given that the row is highlighting and there is no indication here that you added code to do this I am going to assume that you are using VFP8 or VFP9.

So a few properties and stuff you'll want to check out for the Grid:
Highlight
Highlightrow
Highlightstyle

...and for the columns of the grid you might want to look into:
dynamicbackcolor
dynamiccurrentcontrol

...these all can effect the appearance of highlighting and outlining of rows and cells in a grid. Use them seperately or in conjunction with one another to acheive the desired results. Also, there have been quite a few threads on this very subject so you might want to try a keyword search in this forum and in the Forms, Classes and controls forum as well.

boyd.gif

 
I haven't refreshed my memory lately, but I recall this FAQ being full of goodies.

How do I change grids' row/column colors/fonts, ... faq184-3098

thismind.memory.refresh

Brian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top