BUG: Split Causes DataGrid to Repaint Itself Continuously (306886)
The information in this article applies to:
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
- Microsoft Visual Basic Professional Edition for Windows 6.0
This article was previously published under Q306886 SYMPTOMS
When you use the Splits property, if you set the ScrollBar property to dbgAutomatic, the DataGrid control may repaint itself continuously.
This behavior causes CPU utilization to remain at 100 percent. Under certain circumstances, you receive the following error message:
Run-time Error 28 "Out of Stack Space"
The application quits, and the Visual Basic Integrated Development Environment (IDE) closes unexpectedly.
RESOLUTION
To work around this problem, set the ScrollBar property for each Splits property to dbgBoth.
If you set ScrollBar to dbgAutomatic, dbgNone, or dbgVertical, the grid is displayed and continuously repainted until you receive the "Out of Stack Space" error message. If you use the dbgHorizontal setting, you do not receive the same error message consistently. If you use the dbgHorizontal setting, sometimes the CPU utilization remains at 100 percent.
You can use the property pages of the DataGrid control to change the ScrollBar property at design time. You can also set this property in code before you display the DataGrid.
STATUSMicrosoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.
Modification Type: | Major | Last Reviewed: | 12/6/2001 |
---|
Keywords: | kbbug kbMDACNoSweep KB306886 |
---|
|