PRB: Disabled Grid Column Allows Focus with Mouse Click (135628)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 3.0
This article was previously published under Q135628 SYMPTOMS
If the Enabled property of a grid column is set to False (.F.), the
insertion point is not allowed to enter the column if accessed from the
keyboard. However, clicking the column moves the insertion point to the
cell beneath the mouse pointer. Even though no changes can be made, this
behavior may be perceived as confusing, and is inconsistent with other
controls.
WORKAROUND
To prevent the mouse click from activating a disabled column, check for the
nColIndex in the AfterRowColChange event to determine if the column is one
which should reject focus. If it is, reset focus back to the current cell
by calling the ActivateCell method.
STATUS
This behavior is by design.
Modification Type: | Major | Last Reviewed: | 2/15/2000 |
---|
Keywords: | KB135628 |
---|
|