BUG: Data Environment: MSHFlexGrid Rebinding Data
Article ID: 189998
Article Last Modified on 1/8/2003
APPLIES TO
- Microsoft Visual Basic 6.0 Enterprise Edition
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"
Additional query words: kbVBp600bug kbDSupport kbdse kbDatabase kbVBp kbDataBinding kbCtrl
Keywords: kbbug KB189998