| 
| 
FIX: Grid on Page2 Does Not Refresh After ColumnCount Change
ID: Q155930
 
 |  The information in this article applies to:
 
 
Microsoft Visual FoxPro for Windows, versions  3.0, 3.0b
 
 
 SYMPTOMS
When you create a new form as a subclass of a custom Form class, changing
the number of columns in a Grid object located on a page other than the
first page of a PageFrame object results in refresh inconsistencies.
 
 STATUS
Microsoft has confirmed this to be a problem in the Microsoft products
listed at the beginning of this article. This problem has been corrected in
Microsoft Visual FoxPro version 5.0 for Windows.
 
 MORE INFORMATIONSteps to Reproduce BehaviorNotice that the Grid object does not refresh immediately. (The Grid does
not refresh until the Page1 tab is selected and the Page2 tab is
reselected.)Create a new project:
 
 Click New from the File menu.
 
 Click Project.
 
 Click the New File button.
 
 Assign a file name for new project.
 
 
 Create a new class in a new class library:
 
  Click the Classes tab.
 
  Click New.
 
  Assign a new class name.
 
 Click Form from the "Based On" drop-down list box.
 
 Assign a class library name in the "Store In" text box.
 
 Click OK.
 
 
 Create a new Form:
 
  From the Form Controls toolbar, click the PageFrame control and draw
      a PageFrame object on the Form.
 
 From the shortcut menu, click Edit (right-click the PageFrame
      object).
 
 Click the Page2 tab.
 
  From Form Controls toolbar, click the Grid control from Form Controls
      toolbar and place a Grid object on the second page of the PageFrame
      object.
 
  From the File menu, click Save.
 
 From the File menu, click Close.
 
 
 Make this new class the default Form class:
 
  From the Tools menu, click Option.
 
  Click the Forms tab.
 
  Under the Template Classes section, select the Form check box.
      Select or type the path and name of the new class you created in
      Step 2.
 
 Click OK.
 
 
 Create a new Form based on the class you created in Step 2:
 
  In the Project Manager, click the Documents tab.
 
  Click Forms.
 
  Click New.
 
 Click the New Form button.
 
 
 Change the Grid object's ColumnCount on Page2:
 
  Click the PageFrame object.
 
 From the shortcut, menu Click Edit (right-click the PageFrame
      object).
 
  Click the Page2 tab of the PageFrame object.
 
  Click the Grid object.
 
  From the shortcut menu, click Properties (right-click the Grid
      object).
 
 From the Property window, click the ColumnCount property.
 
  Change the ColumnCount property value to 3.
 
 
 
 (c) Microsoft Corporation 1997, All Rights Reserved.
 Contributions by Perry Newton, Microsoft Corporation
 Additional query words: 
 
Keywords          : kbusage FxprgClassoop FxtoolClassdes FxtoolFormdes FxtoolSbuilder Version           : WINDOWS:3.0,3.0b
 Platform          : WINDOWS
 Issue type        : kbbug
 |