Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid display changes when cell is clicked
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01309111
Message ID:
01309144
Views:
8
>>>The only changes from default in the columns is Sparse = .F. and SelectOnEntry = .f.
>>>
>>>When the form is first loaded the data in the cells has no margin at top and left. (Looks Ugly.) When I click on any cell in a column the margin gets set properly on all cells in the column and stays that way as long as the form exists. What can I do to set the margin from the start?
>>
>>Do you have focus on the grid when form starts?
>
>Yes, I just made sure and it is selected at the start. There are two grids, a select from and a selected grid. Both have the same settings and the same problem. I tried setting focus to the column1.Textbox1 but it made no difference. It seems you have to click on them to make the change. There is code in the MouseDown event in every column but I don't think that make any difference. Is there a way to code a mouse click?

You could use MOUSE CLICK command, but before you try what if you put Grid.Setfocus/Refresh code to Form.RightClick event and try it again with right-click on the form after it appeared.
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform