Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do you add a control to a grid column?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00184793
Message ID:
00186037
Vues:
17
>>A few people keep hammering on setting Sparse=.F. I just want to check that I understand one thing about it. Sparse is only important if you have multiple controls in a column, right? If I put a checkbox into a column, then delete the textbox that was there by default, so the column consists only of header and checkbox, I have no need of Sparse=.F., right?
>>
>>Just checking. I'm still sort of a grid newbie.
>>
>>Cheers,
>
>No. Sparse just toggles betwen showing the control in all the grid rows of that column and only showing the control in the active row of the grid.

Huh. Seems like pretty stupid design. If there's only one control in the column, why wouldn't it always show it? Or why wouldn't it at least default to always showing it? TextBox controls are always shown regardless of Sparse. Why not CheckBoxes or anything else? OK, I can see cases (many-row combos) where refresh would be too slow if Sparse=.F. But I think it should default to .F., and the developer should have to turn it off if performance is bad.

My usually-not-too-humble opinion! :)

Cheers,
Rich
Rich Addison, Micro Vane, Inc., Kalamazoo, MI
Relax, don't worry, have a homebrew.
- Charlie Papazian, The New Complete Joy of Home Brewing
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform