The information in this article applies to:
SYMPTOMSUsing a grid that contains a column or columns, with their Sparse property set to .F., and then using the SetAll() method to set a text box property like BackColor, causes the updated property not to appear in the grid text boxes until the grid is refreshed or gets focus. RESOLUTION
As a workaround, use one of the following three methods to force the grid
to be repainted:
STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. MORE INFORMATIONThe SetAll() method of an object sets a specific property of all the objects it contains. You can also specify a specific base class to be affected. The controls can also be contained within other objects within the object whose SetAll is called. In this case, we are affecting text boxes within columns in a grid control by the form's SetAll() method. Steps to Reproduce Behavior
If you add any one of the following lines of code to the end of the preceding program, it causes the correct BackColor to display.
REFERENCES© Microsoft Corporation 1998, All Rights Reserved. Additional query words: kbVFp300bbug kbVFp500abug kbVFp600bug kbOOP kbContainer kbCtrl
Keywords : |
Last Reviewed: August 19, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |