Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Need Grid Solution
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00018053
Message ID:
00018194
Vues:
41
>I have created a simple grid in a form and I don't have a solution to select
>a specific value from RowX and ColumnY. For Example, I want the value
>"q" in Row 2 and Column B by clicking on it (For Any Values in the Grid).
>What do I have to do in order to solve this? Can Anyone Help ? Steve.

Argh, sorry about that last message. Michel, can you delete it?

In any case, just off the top of my head, I would create a grid subclass, with a property ReturnValue. Then, in the AfterRowColChange Event, I would find the control I just moved into, and set the grid.ReturnValue to the value of the current control.

Unfortunately, that's a bit of a hand-wave -- I think it's non-trivial to get that value. Another possibility, but one I don't like as much, is to create a textbox subclass, and have the When event store this.value to this.parent.parent.ReturnValue. Then, change all of your grid columns to use the subclass, instead of the original Fox class. (Edit the grid, click on the subclass, click on the column, go to the properties sheet, change to the original textbox, click on the form title bar, hit delete)
My blog
My consulting page
My home page

Member of the Trim Your Auto-Quote Campaign!
What's another word for thesaurus?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform