Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Need to activate a grid cell from outside the grid.
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00032473
Message ID:
00032475
Vues:
46
>I have a text box and a grid in a container working together as a search tool. The focus is in the textbox, but I'd like to let the user "visually" see the record in the grid by highlighting it. The grid properly scrolls and the record is displayed somewhere, but it is not highliggted and the record pointer is not active.
>
>How can I activate a cell without knowing where in the grid the proper record is. I have the record #, but it does not seem to fit anywhere in the scheme of things. ActiveRow, ActiveColumn, AfterRowColChange are not active because the focus is not in the grid. I know it's just making a call to .ActivateCell(), but how do I know what row and col to pass it without ActiveRow and ActiveColumn being active?
>
>Thanks,
>Steve Despres

I think the best way here is to use DynamicFore/BackColor properties to color particular record. You can check FAQ section for basic explanation how to do this. The idea is to use record primary key for resetting of these properties.
Edward Pikman
Independent Consultant
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform