General information
Category:
Forms & Form designer
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only