BUG: Run-Time Changes to the Grid Not Saved CorrectlyID: Q134251 The information in this article applies to:
SYMPTOMSThe AddColumn method allows a column to be added to a grid at runtime. However, if a column is added between two existing columns and the form is saved using the Thisform.Saveas method, the column order of the grid is not saved correctly. Altough, at runtime the column appears in the correct order. The column added between the existing columns becomes the last column on the grid when the saved screen is modified.
WORKAROUNDUse this command:
Here <number> is the column position you want the newly created column to
be. Issue this command after you have inserted the column and before using
the ThisForm.SaveAs command.
STATUSMicrosoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
MORE INFORMATION
Steps to Reproduce Behavior1. Create a new form called x. 2. In the data environment, add any table. 3. Drag the table from the data environment to the form to create a grid on 4. Save the form.
5. Create a program called Testobj.prg, and add this code:
6. Run the program. When the program is running, observe the difference
Example WorkaroundTo correct the problem, add the following line of code to Testobj.prg before the x.savas('y') command. Then run the program again.
Additional query words: 5.00 3.00 3.00b kbvfp300 kbvfp500 kbvfp600
|
Last Reviewed: August 10, 1998 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |