Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Objects in a grid always contain the same information.
Message
De
21/02/1999 07:57:14
Bob Fine
Fine Software & Consulting Services
Harriman, New York, États-Unis
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00186349
Message ID:
00189779
Vues:
10
Hi Dave,

The Column.Sparse property is already .f.. The object's underlying data is fine,
in other words, if I add the fields from the grid's table, they show up.

There is object.init code that tries to make a combo box using a global array and the table's field, for instance there is a global array of machine types (injection,01, extrusion,02,blow molding,03,...) and the field is say '01' in the first record and '02' in the second.

In the first row of the grid, Injection shows up. But also for the second and so on. Yet, if I display the field machine type, it shows properly.

The question, then, is: Is the object initialized in each row? If not, what method occurs for each row? Refresh is not it (tried it). I've tried all the ones that seem to make sense.

Thanks for your help!

Bob.

>Bob,
>
>First an easy reply, set the Column.Sparse = .f.
>
>If that doesn't fix your problem let us know. Tell us the grid RowSource and column ControlSource
>
>>There is probably a simple thing I'm overlooking, but I can't figure this out:
>>
>>I have a grid with one column. It is on a form produced with the form wizard, on a pageframe. The active control is an object that needs to display some calculated fields from the underlying table - i.e., the grid is linked to a table that contains codes and I want to display the text from other tables.
>>
>>The object has the code for looking up the names, and the very first instance of the object is correct. When the record pointer in the master table is moved, the actual records in the grid table change, but the text fields do not - it is as if one object is being copied over in the grid rather than being re-instantiated in each row.
>>
>>If I remove the calculated fields and display the underlying data all is cool - it works as expected.
Let us help you into the 21st century!
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform