Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Refresh 1 column of 1 line in grid.
Message
From
10/11/1997 12:10:56
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00059281
Message ID:
00059298
Views:
26
>>>I have a grid with a command button in one of the columns. The command button activates an editing window for editing a memo field. I want to signify to the user which records have memo info and which don't. I used the following code:
>>>
>>>THIS.FontBold=IIF(MEMLINES(Comments)>0,.T.,.F.)
>>>THIS.Refresh
>>>
>>>This makes the caption in the command button for all records bold. How do I apply the above code for each individual record in the grid?
>>
>>You should use Column.DynamicFontBold property.
>
>Thanks Ed. This worked great. I also changed the Column.DynamicForeColor to RGB(0,0,255). This however raises another question. When I disable the grid how do I prevent the command buttons DisabledForeColor from overriding the Dynamic setting?

I woul suggest you to use another solution which will span both problems. Add two buttons (with different captions, e.g. Add/Edit) to the column and use DynamicCurrentControl property to toggle these buttons. I guess different captions itself will give good advice to a user.
Edward Pikman
Independent Consultant
Previous
Reply
Map
View

Click here to load this message in the networking platform