PRB: AfterRowColChange Event Code Does Not Enable Grid CellLast reviewed: October 29, 1996Article ID: Q157855 |
The information in this article applies to:
SYMPTOMSIf the Enabled property of a cell is changed in the AfterRowColChange event, the effect may not take place immediately. A cell that should be enabled may be disabled after moving to it from a disabled cell. Moving to a different cell in that row and back again enables the cell.
CAUSEThe Enabled property at the column level is checked upon entry to the field. If it is changed after entering a field, it is not looked at again until you leave and re-enter the field.
WORKAROUNDIf you wish to disallow editing of a cell based on the contents of the cell, set the ReadOnly property to true (.T.) as shown below:
IF numb_char.numb>80000 This.Columns(ncolindex).ReadOnly=.F. ELSE This.Columns(ncolindex).ReadOnly=.T. ENDIFFurthermore, you can change the color of the active cell by following the steps outlined in the following article in the Microsoft Knowledge Base:
ARTICLE-ID: Q129280 TITLE : How to Change the Color of the Active Cell in a Grid STATUSThis behavior is by design.
MORE INFORMATION
Steps to Reproduce Behavior
|
KBCategory: kbprg kbprb
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |