RE: Setting Background row color in a grid.
- From: Leemi@xxxxxxxxxxxxxxxxxxxx (Lee Mitchell)
- Date: Mon, 13 Feb 2006 19:14:48 GMT
Hi Frank:
Take a look at these articles. I think they give you what you need.
132549 How to Set the Color and Font of Grid Rows Conditionally
http://support.microsoft.com/default.aspx?scid=kb;EN-US;132549
130458 How To Highlight the Entire Row in Grid When User Clicks
http://support.microsoft.com/default.aspx?scid=kb;EN-US;130458
126839 How To Create Special Effects in a Grid
http://support.microsoft.com/default.aspx?scid=kb;EN-US;126839
I hope this helps.
This posting is provided "AS IS" with no warranties, and confers no rights.
Sincerely,
Microsoft FoxPro Technical Support
Lee Mitchell
*-- VFP9 HAS ARRIVED!! --*
Read about all the new features of VFP9 here:
http://msdn.microsoft.com/vfoxpro/
*--Purchase VFP 9.0 here:
http://www.microsoft.com/PRODUCTS/info/product.aspx?view=22&pcid=54787e64-52
69-4500-8bf2-3f06689f4ab3&type=ovr
Keep an eye on the product lifecycle for Visual FoxPro here:
http://support.microsoft.com/gp/lifeselectindex
- VFP5 Mainstream Support retired June 30th, 2003
- VFP6 Mainstream Support retired Sept. 30th, 2003
A second problem I have is that I want to set the background color of arow
in a grid if that row has a certain value in a cell. If the cell is notempty
then I want the row to grey. I would like for this to happen as the gridis
loaded. I am not sure where to put the code to do this.
Here is the code I want to use:
IF LEN(ALLTRIM(ThisForm._GRID1.Column4.Text1.Value)) > 0 then
ThisForm._GRID1.Column4.BackColor = RGB(255,255,128)
endif
This actually only greys out 1 cell but I have tried to put this code ineven
several places and all I can get done is to grey out the entire column -
when I don't want certain cells greyed out.
TIA
Frank
-----------------------------------
.
- Prev by Date: Counting instances of an expression
- Next by Date: RE: Counting instances of an expression
- Previous by thread: Re: Setting Background row color in a grid.
- Next by thread: Counting instances of an expression
- Index(es):
Relevant Pages
|