_GridView_Column.Expand (gb.qt4)

Property Expand As Boolean

Return or set if a GridView column automatically expands to fit the GridView width.

If the GridView AutoResize property is not set, then this property has no effect, as no automatic resize occurs. Only explicit resize.

If AutoResize is set, then:

  • If no visible column has the Expand property set, then the last column is expanded as if it has the Expand property set.

  • Otherwise, the difference between the visible width and the width of static columns (with Expand not set) is shared between the expanded columns.

  • If a column with Expand set has an explicit width, this explicit width becomes its minimum width and is taken into account during the previous share of remaining space.