FIX: Clicking Scroll Bar in Grid Writes Data to Wrong RecordLast reviewed: October 29, 1997Article ID: Q139196 |
3.00 3.00b
WINDOWS
kbui kbbuglist kbbugfix
The information in this article applies to:
SYMPTOMSIf you create an edit box in a grid column, enter data in that edit box, and then click the scroll bar of the grid without exiting the edit box, any of the following may occur:
CAUSEThe edit box does not close automatically when it loses the focus to the scroll bar. In some cases, it acts as if it were never open. In other cases, it acts as if it were open on the record to which the record pointer moved. Odd behavior may occur if the control source of the edit box is set to either a character field or a memo field. These behaviors do not occur if you click another cell in the grid or click an object outside the grid.
WORKAROUNDTrap for the MouseDown event while in the edit box. This can be done by placing the following code in the MouseDown event of the grid, which fires before the Scroll event fires:
IF this.activecolumn = 2 && or whatever column the edit box is in keyboard '{TAB}' && or SHIFT-TAB ENDIFThis forces the edit box to close properly before the scroll can be run.
STATUSMicrosoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. This problem has been fixed in Visual FoxPro 5.0 for Windows.
MORE INFORMATION
Steps to Reproduce Problem
|
KBCategory: kbui kbbuglist kbbugfix
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |