Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
TextBox won't refresh properly in a grid
Message
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Title:
TextBox won't refresh properly in a grid
Miscellaneous
Thread ID:
00044130
Message ID:
00044130
Views:
99
I've got a grid with 2 columns. The second column contains another grid. That grid only has one column. Column 1 in each grid has a custom textbox control that is the .CurrentControl. I am using the .ChildOrder, .LinkMaster and .RelationalExpr properties in the child grid. The .Bound properties of these columns are .F. and the custom text box has the control source set. In the 2nd grid, I have code in
the .MouseDown() method to select the item. Very often, the incorrect data gets displayed when the item is clicked on. If I move the cursor to another item, press ENTER, or do some other thing, the correct data will reappear. The correct data is always there, just not displayed.
If I click again on the item to deselect it, the correct value appears. It only happens when first trying to select it. I commented out the "selection" code and it still happened so that's not it. I also know that the record pointer and the .Value of the textbox are the same as I've seen this with WAIT WINDOW. If the pointer is on the right record and the .Value property is correct, what in hell is displaying? I've tried all manner of .Refresh(), .SetFocus()......too many hours with things I can't even remember I've done anymore and yet the incorrect data will still appear....far too often.

Anyone seen anything like this?

Steve Despres
Reply
Map
View

Click here to load this message in the networking platform