if(iWidth > maxWidth) {
maxWidth = iWidth;
}
iRow++;
}
Column column = model.getColumn(iCol);
if(maxWidth < column.getMinWidth()) {
column.setWidth(column.getMinWidth());
} else if(maxWidth == 0) {
//min width may be zero
column.setDefaultWidth();
} else if(maxWidth > column.getMaxWidth()) {
column.setWidth(column.getMaxWidth());
} else {
column.setWidth(maxWidth);
}
}