Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Listbox in a grid
Message
De
21/08/1997 11:13:41
Vinod Parwani
United Creations L.L.C.
Ad-Dulayl, Jordanie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00045849
Message ID:
00046134
Vues:
37
>>Steve,
>>
>>The problem that yu must overcome is the fact that even though you see multiple lists on each row, there is really only one listbox object and it is on the current row. Therefore when you requery that real listbox all of the other ghosts will show the same data.
>>
>>One solution that may help would be to set the Column's Sparse property to .T.. That way the list is only visible when the user enters the active column and the other rows in thast column are simply showing the controlsource's current value for those records. You could even make this a little nicer by changing the rowheight when that column gets focus and changing it back when teh column looses focus, this way there is not a huge rowheight when no lists are being displayed.
>
>Jim,
>
>Thanks for your reply. I did realize that each object in a grid is only a one time definition. That's what made my earlier Drag and Drop stuff from one column in a grid (this is the grid in a grid thing) to another so difficult. I did manage to get past that though.
>
>The problem with .Sparse = .T. is that the requirement will be for all data to display. There are 4 rows that show on this form with the left column being 70 in height. The 2nd column (another grid, or listbox depending) has four or five rows displayed, but the data must be displayed.
>
>But lets address why this thing got started in the first place. In the grid in a grid, the parent grid is 2 cols with another grid in the 2nd. The child grid only has one col in it. The .ChildOrder, .LinkMaster and .RelationalExpr properties are set. Upon display it is correct and the data is fine from parent to child. When I click on a row in the child grid though, it will often flash a value from another grid. MouseDown will sometimes keep that value showing until MouseUp. I do not understand why this happens and all experimentation with trying to get rid of it (hours and hours I might add) have failed. The proper value always is there and will redisplay on MouseUp or if the wrong value is still showing, by clicking again. I just don't get it.
>
>Steve
>
>*******************
>Vinod,
>
>I didn't get any mail from you. sdespres@crosslink.net
>
>Thanks,
>Steve

Pls chk your mails.. I have just send you the reply on abv mentioned address...

Pls cfm upon receipt
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform