resizeToFit(false, true) works perfectly when the grid doesn't have group by. When the group by is applied to the grid, the resizeToFit(false, true) doesn't honor the group by sub headers. The data seems to be overflowing in the grouped by header as shown in the screenshot.
How can I achieve the autofit all the contents in the grid including the grouped by sub headers?