|The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....|
|Home GuiPack RepList Class TReportListView Methods AutoColWidth|
|See also: DefaultColWidth, ExpandColWidth, Header (RLData), Header (ReportListView), DetermineMaxColWidth, FitAllColWidths|
The method AutoColWidth adjusts the column width so that every cell of the column ColNr is fully readable. Note, that the optimum width depends on the contents of the cells. The parameter ColNr may assume any value between 1 and the number of available columns, NrOfColumns. The column headers are included in the calculation of the optimum column width if IncludeHeader is set to TRUE. The property Addon defines an additional value which is added to the optimum column width. Addon may be negative (to reduce the column width); however, no column will be displayed using less than 4 pixels.
Version  of AutoColWidth allows to restrict the column width to a maximum of MaxWidth pixels.