Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: Visual FoxPro
Expertise: Beginner
Apr 8, 1999

VFP Grid Control

Question:
How can I freeze the left-most column in a multicolumn grid? Normally when you scan records to the right side of the grid, you lose the information on the left-most column. How can I prevent losing my label on the left side? Is there a third party software that can do this if VFP can't?

Answer:
You might want to use the partition property to split the grid and then turn off the scrollbars (at least the vertical) in the left panel of the grid.

Try the following:
1. create a table that will be viewed in the grid
2. CREATE FORM GridTest
3. Drop a grid onto the form
4. In the init of the grid put the following:


WITH this
     .Partition = 50
     .PanelLink = .F.  
     .Panel = 0  && Make left panel of grid active
     .Scrollbars=1 && only horz scrollbars on left
     .Panel = 1  && Make rght panel of grid active
     *-- Turn off record and delete marks in 
     *-- right partition
     .RecordMark =.F.
     .DeleteMark = .F.
ENDWITH
DevX Pro
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date