Managing the layout of a list view

A list view typically contains multiple columns, and those columns show varying types of data. One column may contain numeric data, another short text, and still another long blocks of text. Having different types of data often means large variation in the ways in which the list views and columns are shown. PolicyCenter provides several configuration properties on a list view that affect the layout behavior of list views and their columns.

stretch
By default, a list view uses only as much horizontal space as necessary to show the data that it contains. If the columns contain long data, then the list view automatically stretches wider; if the columns contain shorter data, then the list view automatically shrinks to be more narrow. The stretch property on a list view controls how its width is determined. If you set stretch to true, then the list view stretches to be as wide as its containing element. This overrides the default behavior, regardless of whether the stretching is necessary to show its data. If stretch is set to true, then at least one column is required to have its grow property set to true.
grow
When the grow property on a column is set to true, that column uses as much horizontal space as is available to it. If a list view has the property stretch set to true, then at least one column in that list view must have grow set to true. A column with grow set to true expands to make the list view stretch as wide as necessary. If more than one column has grow set to true, then all columns with that setting share the available extra space equally.
wrap
When the wrap property on a list view column is set to true, the data is shown in the horizontal space available to it. If the data requires more space than is available, then it wraps to the next line.
width
The width property on a list view column specifies the exact fixed width of that column, regardless of the data or stretching requirements.
minWidth
The minWidth property on a list view column requires the column to be at least the specified width, but allows it to be wider when necessary to show its data.
maxWidth
The maxWidth property on a list view column allows the column to be any size up to the set maximum. It is not generally advised to use this property.