Using build 15.11.12.12 on Win7. I'd like to use the NTreeList BestFit or BestFitAllColumns method to change my column widths based on the data in the NTreeList. However, for a few columns I don't want their width to be greater than 200. I'm calling:
myTree.BestFitAllColumns();
if (myTree.Columns["largetextcol"].Width > 200)
myTree.Columns["largetextcol"].Width = 200;
The setting of 200 doesn't work. The BestFitAllColumns width is used instead. If I change it like this:
myTree.BestFitAllColumns();
myTree.Update();
if (myTree.Columns["largetextcol"].Width > 200)
myTree.Columns["largetextcol"].Width = 200;
This works. Unless my NTreeList is not visible. In my case my NTreeList may be on a tab of a NTabControl that is not visible. I've tried some other methods on the NTreeList widget but nothing seems to help. How can I get the BestFitAllColumns algorithm to run such that I can then set my max column widths?