Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to get grid to show a translated field value
Message
From
09/02/2009 12:32:10
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
09/02/2009 12:15:18
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01380336
Message ID:
01380343
Views:
106
>Hi,
>
>I placed a textbox inside a grid column, deleting the previously existing textbox. The new textbox is a subclass of a Codemine class which translates the table.field contents from a decimal time to an hour:minutes format.
>
>I verified that the mechanism correctly places the expected value in textbox.value, but the grid does not show the textbox.value, but rather the column.controlsource's value. If I make column.controlsource = table.field then the decimal value is presented to user, naturally. If I leave the column.controlsource blank, hoping that VFP would use textbox.value, then the first column of the table is shown.
>
>Any suggestions?
>
>TIA,
>
>Alex

When you use custom controls, make sure that the Column.CurrentControl is set correctly. You may also have to turn Column.Sparse = .F., to see the same control in rows other than the selected row.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform