Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Show container in a grid
Message
De
04/04/2018 15:57:28
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01659151
Message ID:
01659156
Vues:
36
>>>Hi,
>>>
>>>I want to show a container in a grid. I have done it before and it worked. But this one does not work.
>>>
>>>Here is what I did:
>>>
>>>I created a container with some labels and textboxes. Then I set the grid column1 currentcontrol to this container. Then I removed the default text control from the grid. So now the grid has just one column with the currentcontrol pointing to the container name. I set the column Sparse to .F. (although I even tried .T. with the same results). I set the grid ColumnCount to 1.
>>>
>>>When I run the form, the records of the base cursor are shown in the grid with many columns. As if the container within the grid does not exist.
>>>
>>>What else could I check?
>>
>>I presume you're setting this up at design time, and at runtime the grid appears to "reset" itself? If so, that sounds like you're running into "grid reconstruction"
>
>I think you are right. But I don't know how to prevent it. I think I ran into this issue before; just need to remember how I resolved it. At least now I know where to focus. Thank you.

Have you tried "disassociating" the grid from the record source (e.g. setting recordsource to blank), just before something like a requery() (or anything else that might be rebuilding the table, such as PACK), then reassigning the record source?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform