Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid Cell changes when it gets focus
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Grid Cell changes when it gets focus
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows 7
Miscellaneous
Thread ID:
01573890
Message ID:
01573890
Views:
102
I have a grid. At run time I set some properties:

WITH ThisForm.grdQ
.RecordSource = 'MyQSET'
.ColumnCount = 4

.RecordSource = 'MyQSET'
.columns(1).ControlSource = "Question_ID"

.columns(4).ControlSource = "Seq"
.columns(4).header1.caption = "Sequence #"
.columns(4).width = 100

.SetAll('ReadOnly', .T., 'Column')

When I run the form, the first seq # is displayed as 0. When I click in the cell the correct value displays.

Clicking on any other cell (row or col) causes it to display as 0 again.

The underlying table has SEQ defined as Integer.

Theories:

1) SEQ is reserved? nah.

2) The builder did something behind the scenes. When I added the last column, it got unhappy.

3) It's a display highlight issue? nah.

Not coming up with much else. Ideas?

Hans
Next
Reply
Map
View

Click here to load this message in the networking platform