Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
GRIDS - Using ColumnCount -1
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00393067
Message ID:
00393195
Vues:
15
>I have always had a hard time with this. I like using the ColumnCount -1 in grids to automatically populate the grid with Table/View fields, especially when I do all the Caption work in my View.
>
>My question is this, how do I access all the objects of the grid like columns, headers, textboxes, etc. Specifically there are two things I would like to do now. That is, enable the user to doubleclick on a record/row in a grid and "zoom in" on that record. I already have a command button on my form that I use to popup my "zoomrecord" form. I would like to fire the "Click" event of this command button when a record is doubleclicked in the grid.

Unless you want to do add grid columns in code, you will need to use a grid-level event like ARCC or BRCC (for example) to do what you want. The columns/control code gets lost when columncount is -1. You can use the gris events ARCC or BRCC with a property flag to ensure they don't fire twice. You can put the button-firing call in there too.
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform