Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid display conflict: highlighted row vs NullDisplay
Message
 
 
To
19/12/2008 13:25:12
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Vista
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01368679
Message ID:
01368898
Views:
7
>>I am working with a grid. I am running into a conflict between two options that I want for the display: I want the row that the user clicks on to be highlighted (HighlightBackcolor / HighlightForecolor), and I wany any columns in the display with .NULL. date values to display as blank.
>>
>>I am using a textbox-based class for all of the columns in the grid. For the columns that contain dates, I set the NullDisplay value to ' '. In order for this to work, I must set the date columns' sparse property to .F.
>>
>>In order to get the row to highlight when the user selects it, I have set the grid's HighlightBackcolor and HighlightForecolor to my desired colors, the AllowCellSelection property to .F., and the Sparse properties of the grid's columns to .T.
>>
>>The columns can't have Sparse property set to both .T. and .F., so I have set all of the columns in the grid to Sparse = .T. except for those containing dates, which have Sparse = .F.
>>
>>When the grid runs, the columns with .NULL. dates do show blank, but for the cells of those columns in the selected row, the background is not correct.
>>
>>Of course the other columns do show the correct HighlightBackcolor and HighlightForecolor.
>>
>>Is there any alternative to this compromise? Can I have both the NullDisplay I want, and have the cells in the selected row show the correct HighlightBackcolor and HighlightForecolor?
>>
>>Thanks,
>>Jim
>
>Hi Jim,
>
>set
>
>textbox.BackStyle = 0 && transparent
>
Hi Fabio,

Thanks for responding to my posting. I finally figured that out too. But, I also need to make BorderStyle=0. Problem solved.

Jim
Previous
Reply
Map
View

Click here to load this message in the networking platform