Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid Columns - Moving and Locking
Message
De
17/06/2013 03:54:36
 
 
À
17/06/2013 03:49:28
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01576483
Message ID:
01576534
Vues:
43
>>Hi All
>>
>>I have a grid on a form and would like to lock the 1st column so that it cannot be moved but allow any of the other columns to be moved as the user prefers. I have experimented with LockColumns and LockColumnsLeft but setting either of these to a value of 1 achieves the result of locking the first column but then prevents any of the other columns to be moved at all. So, how to lock column 1 but allow all other columns to be moved?
>
>You may try to split the grid into panels, i.e. .partition={position of the splitter bar}. Now it would be interesting to see whether you can lock the column in the left panel...
>
>Or, alternately, have two grids and make sure they stay in sync (which would be even harder).

I found a work-around -

1) Fix the columns using LockColumns=1 (or whatever). This locks the columns in the right-grid and prevents any columns to be moved. The left-grid is currently width=0 (default) which is hidden.

2) To re-size and move columns:

2.1) Make visible the left-grid using the grid splitter
2.2) Re-size move columns in the left-grid. These changes automatically reflect in the right-grid as well
2.3) Close the left-grid again.
In the End, we will remember not the words of our enemies, but the silence of our friends - Martin Luther King, Jr.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform