ID: Q147572
3.00 3.00b WINDOWS kbprg kbbuglist kbfixlist
The information in this article applies to:
Scrollbars on a grid object are visible but disabled even though there are enough records in the table to expect working scrollbars.
The ColumnCount property of the grid object has been set to a number greater than -1 in design mode and the RecordSource property has been left empty.
Leave the ColumnCount property value at -1 and set it programmatically once the form has been instantiated.
Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. This problem has been fixed in Visual FoxPro 5.0 for Windows.
1. Create a new form, and place a grid and command button on it.
2. In the Click event of the command button, add the following code:
USE customer
ThisForm.Grid1.ColumnCount = 3
ThisForm.Grid1.RecordSource = "customer"
ThisForm.Grid1.Column1.ControlSource = "customer.company"
ThisForm.Grid1.Column2.ControlSource = "customer.contact"
ThisForm.Grid1.Column3.ControlSource = "customer.country"
3. Run the form, and click the command button. Notice that the scrollbars
are disabled when they should be enabled.
KBCategory: kbprg kbbuglist kbfixlist
KBSubcategory: FxprgGrid VFoxWin buglist3.00 buglist3.00b fixlist5.00
Additional reference words: 3.00 3.00b
Keywords : kbVFp kbVFp300bbug kbVFp500fix buglist3.00 FxprgGrid kbbuglist kbfixlist
Version : 3.00 3.00b
Platform : WINDOWS
Last Reviewed: February 23, 1997