Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changing the grid current control at runtime.
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00276709
Message ID:
00277153
Views:
20
>I am trying to change the grid current control at runtime and it doesn't quite work.
>I am adding a new control called "Text2" and then removing the old control called "Text1" and setting the current control to the new control. Here is the code.
>
>Form.Grid1.Column1.AddObject("Text2", "SearchListTextBox")
>Form.Grid1.Column1.RemoveObject("Text1")
>Form.Grid1.Column1.CurrentControl = "Text2"
>
>This works and the data is displayed except when I click into a cell. The cell I click into goes blank. When I move focus to another cell then the data in the old cell reappears and the new cell goes blank.
>
>Has anyone seen this?
>
>Am I missing a property?
>
>Thanks in advance.

I saw this thing twice. Both times I had to rebuild the form from scratch. seemed to be a severe corruption.
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform