BUG: Container Property of DBGrid Does Not Behave CorrectlyLast reviewed: October 3, 1996Article ID: Q149267 |
The information in this article applies to:
SYMPTOMSIf the container property of the DBGrid control is changed at run time, subsequent changes to the DBGrid's properties will still reflect the initial container. If the Name property of the Container object (that is, DBGrid1.Container.Name) is examined, it will return the newly set container, but the DBGrid itself will not honor this change.
WORKAROUNDTo work around this problem, place the DBGrid control inside another container (such as a PictureBox or Frame), size this container, and set properties so that the DBGrid appears as normal, and then set the properties of this container instead of the properties of the DBGrid. Steps 5 - 9 of the reproduction sample below demonstrate this workaround.
STATUSMicrosoft has confirmed this to be an issue in the Microsoft products listed at the beginning of this article. Microsoft is researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
MORE INFORMATION
Steps to Reproduce
|
Additional reference words: 4.00 vb4win vb4all
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |