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.
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.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.