Microsoft KB Archive/185241

= BUG: Cannot Navigate Columns If a Row in a Grid is Disabled =

Article ID: 185241

Article Last Modified on 12/11/1999

-

APPLIES TO


 * Microsoft Visual FoxPro 5.0 Standard Edition
 * Microsoft Visual FoxPro 5.0a
 * Microsoft Visual FoxPro 6.0 Professional Edition

-



This article was previously published under Q185241



SYMPTOMS
When one of the rows in a grid is disabled, after selecting the disabled row and moving to the rightmost or leftmost column, the Right/Left arrow and the Tab keys cannot be used to switch from one column to the other. However, the mouse can be used to move from one column to another.



STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. We are researching this bug and will post new information here in the Microsoft Knowledge Base as it becomes available.



Steps to Reproduce Behavior
  Create and populate a table as follows: CREATE TABLE test (fld1 N(5), fld2 c(5)) INSERT INTO test VALUES (85000,"aaaaa") INSERT INTO test VALUES (90000,"bbbbb") INSERT INTO test VALUES (75000,"ccccc") INSERT INTO test VALUES (60000,"ddddd")  Create a form and add the table to its data environment. Drag and drop the table from the data environment onto the form to create a grid.  Place the following code in the grid's AfterRowColChange event: IF test.fld1>80000 This.Columns(ncolindex).Enabled=.t.     ELSE This.Columns(ncolindex).Enabled=.f.     ENDIF  Run the form and use the Down Arrow key to move to the record that has 75000 in the first column. When the cell containing 75000 gets the focus, it is disabled.</li> Use the RIGHT ARROW, LEFT ARROW, or TAB key to move to the leftmost or the rightmost column in the row.</li> Once the focus is in the leftmost or rightmost column, using the LEFT ARROW, RIGHT ARROW, or TAB keys, try to move to some other column. Note that you will not be able to move to another column.</li></ol>

NOTE: You can use the Mouse to navigate from one column to another.

Additional query words: vfoxwin kbvfp500 kbvfp600

Keywords: kbbug kbpending KB185241

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.