PRB: DataGrid or DbGrid May Not Display Data (193094)
The information in this article applies to:
- Microsoft Visual Basic Professional Edition for Windows 5.0, when used with:
- Microsoft Visual Basic Professional Edition for Windows 6.0, when used with:
- Microsoft Visual Basic Enterprise Edition for Windows 5.0, when used with:
- Microsoft Visual Basic Enterprise Edition for Windows 6.0, when used with:
This article was previously published under Q193094 SYMPTOMS
In Visual Basic 6.0, after binding a DataGrid control to an ActiveX Data
Objects (ADO) data control, you may not see any data display in the grid.
This behavior occurs if you set or change any property of the Layout
Property page of the DataGrid without executing the Retrieve Fields option
of the DataGrid first.
You may see the same behavior occur in Visual Basic 5.0 if you use a DBGrid
control.
CAUSE
The data fields are not retrieved yet.
RESOLUTION
The Layout Property page for either the DataGrid or the DBGrid controls
contains properties available at design-time only and needs to be set after
all fields are available or retrieved.
To work around this problem, you need to run the Retrieve Fields method
before setting any property on the Layout property page.
STATUS
This behavior is by design.
Modification Type: | Minor | Last Reviewed: | 4/22/2003 |
---|
Keywords: | kbCtrl kbDataBinding kbprb KB193094 |
---|
|