BUG: DBGrid Align Before Retrieve Fields Causes Hidden Data (142829)
The information in this article applies to:
- Microsoft Visual Basic Standard Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Professional Edition, 16-bit, for Windows 4.0
- Microsoft Visual Basic Professional Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Enterprise Edition, 16-bit, for Windows 4.0
- Microsoft Visual Basic Enterprise Edition, 32-bit, for Windows 4.0
This article was previously published under Q142829 SYMPTOMS
Setting the Alignment property of a column in a DBGrid control at design-
time, before selecting Retrieve Fields, results in the grid not showing any
data when the application is run.
RESOLUTION
At design time, select Retrieve Fields from the custom control property
dialog box. Any changes made to the Alignment properties of columns in the
grid will no longer cause this problem. If the DatabaseName and
RecordSource properties of the data control are not known until the program
is run, using Retrieve Fields won't be an option. In this case, just set
the Alignment property of the column(s) in question at run time, like this:
DBGrid1.Columns(0).Alignment = 2 'select center alignment
STATUS
Microsoft has confirmed this to be a issue in the Microsoft products listed
at the beginning of the article. We are researching the problem and will
post new information here in the Microsoft Knowledge Base as it becomes
available.
Modification Type: | Major | Last Reviewed: | 12/9/2003 |
---|
Keywords: | kbbug KB142829 |
---|
|