Class

# WebListBoxColumnData

<div class="rst-class">

forsearch

</div>

Listbox

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

## Description

Describes a column from a data source for use with a `WebListBox</api/user_interface/web/weblistbox>`.

## Properties

<div class="rst-class">

table-centered_columns_3_and_4

</div>

| Name                                                          | Type                                                   | Read-Only | Shared |
|---------------------------------------------------------------|--------------------------------------------------------|-----------|--------|
| `ColumnType<weblistboxcolumndata.columntype>`                 | `WebListBox.CellTypes<weblistbox.celltypes>`           |           |        |
| `DatabaseColumnName<weblistboxcolumndata.databasecolumnname>` | `String</api/data_types/string>`                       |           |        |
| `Heading<weblistboxcolumndata.heading>`                       | `String</api/data_types/string>`                       |           |        |
| `Sortable<weblistboxcolumndata.sortable>`                     | `Boolean</api/data_types/boolean>`                     |           |        |
| `SortDirection<weblistboxcolumndata.sortdirection>`           | `WebListBox.SortDirections<weblistbox.sortdirections>` |           |        |
| `Width<weblistboxcolumndata.width>`                           | `String</api/data_types/string>`                       |           |        |

## Methods

<div class="rst-class">

table-centered_column_4

</div>

| Name                                             | Parameters                                                                                                                                                                                                         | Returns | Shared |
|--------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------|--------|
| `Constructor<weblistboxcolumndata.constructor0>` | name As `String</api/data_types/string>`, columnName As `String</api/data_types/string>`, sortable As `Boolean</api/data_types/boolean>` = `True</api/language/true>`                                              |         |        |
| `Constructor<weblistboxcolumndata.constructor1>` | name As `String</api/data_types/string>`, columnName As `String</api/data_types/string>`, sortable As `Boolean</api/data_types/boolean>` = `True</api/language/true>`, width As `Integer</api/data_types/integer>` |         |        |

## Property descriptions

<div id="weblistboxcolumndata.columntype">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

WebListBoxColumnData.ColumnType

**ColumnType** As `WebListBox.CellTypes<weblistbox.celltypes>`

> Used to indicate the type of control that should appear in every cell of a column by default.

<div id="weblistboxcolumndata.databasecolumnname">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

WebListBoxColumnData.DatabaseColumnName

**DatabaseColumnName** As `String</api/data_types/string>`

> The name of the column in the a table in the database from which the data will be fetched.

<div id="weblistboxcolumndata.heading">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

WebListBoxColumnData.Heading

**Heading** As `String</api/data_types/string>`

> The name of the column as it should appear in the WebListBox.

<div id="weblistboxcolumndata.sortable">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

WebListBoxColumnData.Sortable

**Sortable** As `Boolean</api/data_types/boolean>`

> If `True</api/language/true>`, the column's sort widget will appear allowing the user to sort this column.

<div id="weblistboxcolumndata.sortdirection">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

WebListBoxColumnData.SortDirection

**SortDirection** As `WebListBox.SortDirections<weblistbox.sortdirections>`

> Indicates if the sort will be ascending or descending.

<div id="weblistboxcolumndata.width">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

WebListBoxColumnData.Width

**Width** As `String</api/data_types/string>`

> Indicates how wide the column should be when it appears in the WebListBox.

## Method descriptions

<div id="weblistboxcolumndata.constructor0">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

WebListBoxColumnData.Constructor

**Constructor**(name As `String</api/data_types/string>`, columnName As `String</api/data_types/string>`, sortable As `Boolean</api/data_types/boolean>` = `True</api/language/true>`)

> <div class="note">
>
> <div class="title">
>
> Note
>
> </div>
>
> `Constructors</api/language/constructor>` are special methods called when you create an object with the `New</api/language/new>` keyword and pass in the parameters above.
>
> </div>
>
> Creates a new <span class="title-ref">WebListBoxColumnData</span> object with the values passed.

<div id="weblistboxcolumndata.constructor1">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

WebListBoxColumnData.Constructor

**Constructor**(name As `String</api/data_types/string>`, columnName As `String</api/data_types/string>`, sortable As `Boolean</api/data_types/boolean>` = `True</api/language/true>`, width As `Integer</api/data_types/integer>`)

> Creates a new <span class="title-ref">WebListBoxColumnData</span> object with the values passed.

## Notes

This type is returned by the `WebDataSource.ColumnData<webdatasource.columndata>` method of any class that supports the `WebDataSource</api/web/webdatasource>` interface.

## Compatibility

|                       |     |
|-----------------------|-----|
| **Project Types**     | Web |
| **Operating Systems** | All |

<div class="seealso">

`Object</api/data_types/additional_types/object>` parent class; `WebListBox</api/user_interface/web/weblistbox>` control, `WebDataSource</api/web/webdatasource>` interface, `WebListBoxRowData</api/web/weblistboxrowdata>` class.

</div>
