BUG: Runtime Changes to the Grid Not Saved CorrectlyLast reviewed: May 1, 1997Article ID: 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:
Thisform.<gridname>.column(n).colunmnorder = <number>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 Behavior
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.
x.mygrid.colItem.columnorder = 2 |
Additional query words: 5.00 3.00 3.00b
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |