Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Locking Column 1 of a grid question
Message
 
À
31/10/1997 08:52:14
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00057575
Message ID:
00057616
Vues:
36
>Howdy,
>
>I have a grid with about 20 or so columns. Column 1 is a read only description, while columns 2 through 20 are data entry.
>
>Is their any way to "Lock" column 1 so that it stays on screen at all times while scrolliong through the other columns ?
>
>I'm familiar with the old "LOCK 1" bologna used in Browses, except this puts column1 in with the scrollable columns, as well as in the locked column. This looks ugly when the descript column appears twice.
>
>I've done a lot of facny footwork to get around this (special KEYBOARDing in the valid of the last column, etc.), but was wondering if their is a real solution.
>
>Thanks Much !
>JFiduccia@Jcrew.com

Johm,
FoxPro Advisor published an article on a grid class that does what you want. You set a property to indicate which column you want the grid to be locked at. it prevents the user form doing anything in the left partition. The right partition is prevented from displaying the columns in the left partition. The Refresh, AfterRowColumnChange and Scrolled methods check the display and scroll each partition as needed to maintain the correct view. If you are in the left partition it moves you to the right one. A custom method called from Init is used to set up the partitions based on the anchor colum you specify.
Steve Ruhl
CitiMortgage, Inc.
steven.ruhl@citibank.com Office
Steve@steven-ruhl.com Home
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform