lcl, grids, make sure that when changing from std grid to custom columns grid all sizes are recalculated, fix crash reported in issue 26232

git-svn-id: http://svn.freepascal.org/svn/lazarus/trunk@46148 4005530d-fff6-0310-9dd1-cebe43e6787f