Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Locking Column 1 of a grid question
Message
From
31/10/1997 15:01:25
Juan Kh
Dataprop Technologies
Sungai Petani, Malaysia
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00057575
Message ID:
00057640
Views:
26
John,

Try exploring the "Partition" and "SplitBar" property of the Grid. They will help.

juan

>>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform