General information
Category:
Forms & Form designer
Environment versions
Network:
Windows 2003 Server
>I do like this. For BOLD and backcolors / forecolors
>This code can go in the page activate or grid Afterrowcol event
>
>for i = 1 to thisform.pageframe1.page1.Grid1.ColumnCount
> xcol = "column"+allt(str(i))+'.'
> thisform.pageframe1.page1.grid1.&xcol.DynamicFontBold = ;
> 'IIF(mark="Y", .t., .f.)'
>endfor
>
>thisform.pageframe1.Page1.Grid1.column1.dynamicbackcolor = 'iif(mark="Y",rgb(0,255,255),rgb(255,255,255))'
>Hope this helps. Not positive I understand all your needs.
Dorothy,
Thanks for your suggestion. My case is a little different. I want the row that the user has selected to be highlighted. That requires that the column sparse property be set to .T.
But, I also want the NullDisplay property for some of the columns to work, and for that, the column sparse property must be set to .F.
What you are suggesting is that for the columns where I have the sparse property set to .F., I set the DynanicBackcolor and DynamicForecolor. For me to do that, I need to have some indicator of whether the cell is in a selected row. Any idea of how I can determine that?
I hope I have made this more clear.
Thanks,
Jim
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only