Link to home
Start Free TrialLog in
Avatar of Effortless
Effortless

asked on

DatePicker control in VFP grid doesn't show after picking date and column loses focus.

I am trying to use the Microsoft Date and Time Picker 6.0 ActiveX object in a VFP 9 gridview control. The control works when the cell/column has focus, but I cannot see the value in the cell after the focus moves to the next column. I have tried the SPARSE  property of the column, which hasn't made any difference.

What must I do to see the cell contents after the cell loses focus?

I've attached two images of the cell, one with focus, the other without.

User generated image

User generated image
ASKER CERTIFIED SOLUTION
Avatar of Pavel Celba
Pavel Celba
Flag of Czechia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Effortless
Effortless

ASKER

Thank you for your help, I did not realize that about ActiveX and Sparse.

I would like to try the two controls solution you suggest as a possible solution - which method/event(s) do you think I could use to set the CurrentControl property of the column? I wanted to try GotFocus on the column, but that doesn't exist...
Thank you pcelba, I was able to change the CurrentControl in the GotFocus of text1 to OleControl1, and then back to Text1 on LostFocus of OleControl1. This works!