Visual Basic: MSFlexGrid/MSHFlexGrid Controls
ClearStructure Method (MSHFlexGrid)
SeeAlso Example Applies To
Clears any mapping information from the MSHFlexGrid that regards the order and name of the displayed columns. This information may have been set at design time using the Band tab of the Property Pages dialog box or the Retrieve Structure command on the shortcut menu.
This method enables you to reset the MSHFlexGrid to a known state. If the user programmatically changes the underlying source of the MSHFlexGrid (and that source has a different structure), execute this method to properly display the data.
The ClearStructure method syntax has one part:
|object||An object expression that evaluates to an object in the Applies To list.|
If the structure is changed without clearing the mapping information, the MSHFlexGrid attempts to display the new source with the existing mapping information. Only columns specified in the mapping information display data in the MSHFlexGrid. Other columns specified in the mapping information display but dont show any data.