devxlogo

VFP Grid Control

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

See also  Why ChatGPT Is So Important Today
devxblackblue

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist