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:
00167728
Vues:
25
No, you can't reduce the number of columns when a grid is instanciated.

Unfortunatly, you can't subclass the column of a grid in VFP. Unless you have a specific kind of grid that you want to reuse in many places and that you do not need to modify the columns, the best approach is to create a class with ColumnCount = -1 and insert your textbox at every instance of the grid.

>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?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform