property G2antt.ColumnAutoResize as Boolean

Returns or sets a value indicating whether the control will automatically size its visible columns to fit on the control's client width.

TypeDescription
Boolean A boolean expression indicating whether the control will automatically size its visible columns to fit on the control's client width.

By default, the ColumnAutoResize property is true. So, by default, the control displays no horizontal scroll bar, no matter how many visible column are. Use the ColumnAutoResize property to fit all your columns in the client area. If the ColumnAutoResize property is False, and ScrollBars property is exBoth or exHorizontal the horizontal scroll bar is shown when required. If the ScrollBars property is exDisableBoth or exDisableNoHorizontal the horizontal scroll bar is always shown. Use the ScrollBars property to show, enable or disable the control's scroll bars. Use the Width property to specify the column's width. Use the SortBarColumnWidth property to specify the column's head in the control's sort bar. By default, the ColumnAutoResize property is True.