Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Freezing a column in a Grid
Message
De
24/03/1998 13:31:51
 
 
À
24/03/1998 13:04:52
Michael Knelsen
Technology Management Corporation
Regina, Saskatchewan, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00086740
Message ID:
00086752
Vues:
24
>I have a grid that holds about 20 columns, and the first column in the grid is important to have on the screen when looking at columns that you need to scroll to. I tried to use the Partition Property, but it did not work quite the way I wanted it to work. Is there any other way to get a column to stay/freeze to the left side?
>
>Thanks in advance.
>Mike
The columns in a grid may be referenced by the 'COLUMNS' attribute of the grid itself, and swapping the columsn: the Scrolled event could contain coding that would re-arrange the columns so that 'A' is always shown on the left side of the grid. There are some complications ( for example, a column whose width equals or exceeds the width of the grid -- where only that column will show ). I have not done exactly what you are asking, but have implimented command buttons to make the grid appear to scroll -- actually making the column widths = 0 which collapses the column to only the size of the vertical grid line ( if grid line is visible ), but I am assuming that you want the 'natural' use of the scroll bar tools themselves to control the horizontal scrolling, right?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform