unodgs Messages: 1366 Registered: November 2005 Location: Poland
Ultimate Contributor
if grid is displayed (the parent window is visible) each AddColumn causes recalculating column widths. Please before adding columns add grid.Ready(false) and after grid.Ready(true). That will solve your problems.
unodgs Messages: 1366 Registered: November 2005 Location: Poland
Ultimate Contributor
In the next version (it's still in progress but many cool features will be there ) I will change calculating columns widths in proportional mode. In most cases grid is setup once before opening dialog/window. In early stage of gridctrl AddColumn did not cause repainting header but user expects it to do it - this is the problem - it's hard to create univesal and intuitive api without corner cases.