How to Prevent a Grid Header from Being Resized InteractivelyLast reviewed: December 25, 1995Article ID: Q141722 |
The information in this article applies to:
SUMMARYIn a grid object, the default behavior allows a user to resize the header by clicking and dragging it. The grid header could potentially be pulled down so that it covers the entire grid object and all of the data contained within it. This article demonstrates how to use program code to prevent a user from resizing the header of a grid.
MORE INFORMATIONThe following example creates a new property for the form to store the original size of the grid's HeaderHeight Property. Then, in the MouseUp event of the grid, the HeaderHeight Property is reset to its the original size should a user attempt to change it while running the form.
Step-by-Step Example
|
Additional reference words: 3.00 3.00b VFoxWin
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |