method XMLGrid.ResizeToFit ([Level as Variant], [IncludeNextLevels as Variant])
Resizes the control's level ( and the next ones ) so its content its fully visible.

TypeDescription
Level as Variant A Long expression that specifies the level to start resizing to fit.
IncludeNextLevels as Variant A Boolean expression that specifies whether next levels are adjusted as well. If IncludeNextLevels parameter is missing, no next levels are included in the ResizeToFit method. 
The ResizeToFit method resizes the control's level ( and the next ones ) so its content its fully visible. The user can [SHIFT + ]double click the resizing level, so it gets fit. Use the LevelWidth property to specify the level's width. The control fires the ResizeLevel event when user resizes a level. Use the Level property to get the node's level.