# DialogListColumn

The **DialogListColumn** object represents a column in a _Details_ mode _list view_ control in a [script dialog.](../../../scripting/script_dialogs) Use the [**Control**](control)**.columns** property to obtain a [**DialogListColumns**](dialoglistcolumns) object, and then enumerate it to obtain individual **DialogListColumn** objects.&#x20;

| Property Name | Return Type | Description                                                                                                                                                                                                                                |
| ------------- | ----------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| name          | _string_    | Returns or sets the column's name.                                                                                                                                                                                                         |
| resize        | _bool_      | Set this property to **True** if you want this column to automatically resize when the list view is resized horizontally. Only one column can be set to auto-resize at a time.                                                             |
| sort          | _int_       | Returns **1** if the list view is currently sorted forwards by this column, **-1** if it's currently sorted backwards by this column, or **0** otherwise. Settings this property will re-sort the list.                                    |
| width         | _int_       | Returns or sets the column's width in pixels. Set it to **-1** to automatically size the column to fit its content. You can automatically resize all columns at once using the [DialogListColumns](dialoglistcolumns)**.AutoSize** method. |
