Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Refresh cell in a grid
Message
 
 
À
25/07/2001 13:53:09
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00535086
Message ID:
00535225
Vues:
22
Gregory,

This is exactly what I tried in InteractiveChange with no desired effect at all :(( This little problem is driving me crazy, not to mention all other problems somehow introduced with this combo... :(

Oops, I solved the first problem by:
this.value=this.value
replace BldMstr.ccode with curTowns.ccode
this.parent.parent.column2.refresh()
Note, a column refresh, not a text1, which didn't work for some reason.

Still I have other problem with not properly highlighting the current record


>Nadya,
>
>why not simply
>
>replace (this.parent.parent.column2.text1.ControlSource) with curTowns.ccode in (left(this.parent.parent.column2.text1.ControlSource, at('.', this.parent.parent.column2.text1.ControlSource) -1 ) )
>
>this.parent.parent.column2.text1.Refresh()
>
>and correction to the code below, replace should read (since the table may not be selected)
>
>replace (this.ControlSource) with this.Value in (left(this.parent.parent.column2.text1.ControlSource, at('.', this.parent.parent.column2.text1.ControlSource) -1 ) && or whatever the tablename is
>
>-----
>>>Nadya,
>>>
>>>add this code to the ProgrammaticChange() of this.parent.parent.column2.text1
>>>
>>>if( this.Value <> eval(this.ControlSource) )
>>>    replace (this.ControlSource) with this.Value
>>>
>>>    this.Refresh()  && not sure whether this is necessary
>>>endif
>>
>>I tried that, but it didn't work :(
>>>
>>>another possibility would be to set up a relation between the table of your grid and curTowns and make the ControlSource of the column CurTowns.ccode
>>
>>Right, but in this case the main table would not be updated. I can, though, program around it, if there is no other way. Actually, this is not a big problem, but a little bit annoying. All other problems, which I mentioned in my reply to Cetin, are more important. I'm thinking, that combo in a grid is a bad choice. May be I have to create a container based class instead?
>>
>>What would be suggestions here?
>>
>>Thanks in advance.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform