Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid Cell changes when it gets focus
Message
De
07/06/2013 13:58:18
 
 
À
15/05/2013 08:15:54
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows 7
Divers
Thread ID:
01573890
Message ID:
01575864
Vues:
119
>>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?
>
>Try setting Sparse for the column to .F.
>
>Tamar


i always specify the cursor name in the column like so"
.columns(1).ControlSource = "MyQSET.Question_ID"
Peter
Peter Cortiel
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform