Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Changing the grid?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00167605
Message ID:
00167773
Vues:
22
>Hi Michelle,
>
>>More specifc directions, to make sure you're not missing a step:
>>-Right click on the grid and choose edit
>>-Bring up properies and make it stay on top
>>-Click on the column where you want the textbox
>>-On the properties sheet, go down to the textbox listing for that column
>>-Click on the column again
>>-Press delete
>>-Click on your textbox class on the form controls toolbar
>>-Click on the column again
>
>Great! It worked! Only think is that we want to edit the grid item which is in our library class. So not a grid which is on a form. We did it and it works. Only problem is that we have the ColumnCount set to -1 at default in our grid item. When we use a grid in one of our forms we use our own grid. Then we set the ColumnCount to the number we want (3 for instance) and then the correct columns are shown. Except that then the textbox of VFP is used and not ours. I guess we should create a grid with 20 columns and use our textboxes items in there? And when we want fewer columns we just set the column count to the one we want. This way we still have our textboxes?
>
>Is this a good approach?
>
>Thanks for your answer!!

If you make a grid with 20 columns, I _think_ you're stuck with that many in the grid. VFP doesn't like deleting objects that were in the class. I don't know how to make it automatically have your textbox in it. I know there was a thread about it not long ago, but I only skimmed it because it seemed more complicated than I had time to do.

-Michelle
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform