BUG: Run-Time Changes to the Grid Not Saved Correctly (134251)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 3.0
- Microsoft Visual FoxPro for Windows 3.0b
- Microsoft Visual FoxPro for Windows 5.0
- Microsoft Visual FoxPro for Windows 5.0a
- Microsoft Visual FoxPro for Windows 6.0
This article was previously published under Q134251 SYMPTOMS
The 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.
WORKAROUND
Use 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.
STATUS
Microsoft 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.
Modification Type: | Major | Last Reviewed: | 5/7/2003 |
---|
Keywords: | kbBug KB134251 kbAudDeveloper |
---|
|