Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Freezing Panels in A Grid
Message
De
29/04/1999 15:15:01
 
 
À
29/04/1999 14:48:02
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00213579
Message ID:
00213599
Vues:
22
>I have a grid control in which I have set a partition to freeze the left 2 columns. The right side of the grid displays all the columns. How could I best start the right side of the grid at column 5 rather than column1?
>
>Thanks
>
>Scott

I'm doing something similar to this. You can unlink the panels and set the necessary characteristics for each panel, then relink them so scrolling is the same in both panels. I turn the scroll bars off in the left panel so it looks like just another column ( I show one column ). You can use the grid DOSCROLL() method on the right panel to scroll over to the correct column. Then you can play some games in the grid SCROLLED event to keep the user from scrolling over to a column(s) in the right panel that is shown in the left panel. With code in the MouseUp event, you can let them use the splitter to resize the column(s) in the left panel. This a little generic, but if you work with it you can make it pretty seamless. Another solution if you don't have too many records to display is to use the msFlexGrid ActiveX control.

Bill
William A. Caton III
Software Engineer
MAXIMUS
Atlanta, Ga.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform