gacek999
4 Oct 2007, 8:49 AM
Hi,
How can I autoSizeColumns() so each ComboBox editor will have width equal to its longest item?
I'm using renderer to display data in the grid and unfortunately column width is determined by what is actually rendered. Let's say I have combo with this values:
a
bb
ccc
dddd
In one column, bb is the longest entry so column autosizer sets width to bb. Then, when I select ComboBox dddd item is cut. I need to resize each column to combo's maximum width.
TIA
How can I autoSizeColumns() so each ComboBox editor will have width equal to its longest item?
I'm using renderer to display data in the grid and unfortunately column width is determined by what is actually rendered. Let's say I have combo with this values:
a
bb
ccc
dddd
In one column, bb is the longest entry so column autosizer sets width to bb. Then, when I select ComboBox dddd item is cut. I need to resize each column to combo's maximum width.
TIA