BUG: Data Environment: MSHFlexGrid Rebinding Data (189998)
The information in this article applies to:
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
This article was previously published under Q189998 SYMPTOMS
Attempting to rebind the MSHFlexGrid to a different Data Environment as the
DataSource property results in an error:
Runtime Error 30022, The Hierarchical FlexGrid does not support the
requested type of data binding.
CAUSE
If the MSHFlexGrid.DataMember is set to a Data Environment other than the
original, the MSHFlexGrid attempts to rebind the data using the previous
DataSource property setting. Because the same Command does not exist in the
subsequent Data Environment, an error results.
RESOLUTION
To work around this problem, set MSHFlexGrid.DataSource = Nothing before
rebinding to the next Data Environment.
STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed
at the beginning of this article. We are researching this bug and will post
new information here in the Microsoft Knowledge Base as it becomes
available.
REFERENCES
Visual Basic Books Online, "The Data Environment"
Modification Type: | Minor | Last Reviewed: | 1/8/2003 |
---|
Keywords: | kbbug KB189998 |
---|
|