Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Need to activate a grid cell from outside the grid.
Message
De
22/05/1997 15:07:43
Alhad Marathe
Asm Consulting
Mumbai, Inde
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00032473
Message ID:
00033316
Vues:
38
>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

Steve,

You can add a Logical field 'Selected' to the table being searched. If a record matches the data typed in the textbox, set 'selected' to .t.. In the grids init event, set the DynamicForecolor/DynamicBackcolor property depending on the selected status of a record.

Alhad
Only direct experience is Knowledge;
Everything else is just Information.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform