Class

# WebListBox

<div class="rst-class">

forsearch

</div>

Listbox

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

## Description

A scrollable, multicolumn listbox control.

## Properties

<div class="rst-class">

table-centered_columns_3_and_4

</div>

| Name                                                      | Type                                               | Read-Only | Shared |
|-----------------------------------------------------------|----------------------------------------------------|-----------|--------|
| `AllowRowReordering<weblistbox.allowrowreordering>`       | `Boolean</api/data_types/boolean>`                 |           |        |
| `ColumnCount<weblistbox.columncount>`                     | `Integer</api/data_types/integer>`                 |           |        |
| `ColumnWidths<weblistbox.columnwidths>`                   | `String</api/data_types/string>`                   |           |        |
| `ContextualMenu<weblistbox.contextualmenu>`               | `WebMenuItem</api/user_interface/web/webmenuitem>` |           |        |
| `ControlID<weblistbox.controlid>`                         | `String</api/data_types/string>`                   | ✓         |        |
| `DataSource<weblistbox.datasource>`                       | `WebDataSource</api/web/webdatasource>`            |           |        |
| `DefaultRowHeight<weblistbox.defaultrowheight>`           | `Integer</api/data_types/integer>`                 |           |        |
| `Enabled<weblistbox.enabled>`                             | `Boolean</api/data_types/boolean>`                 |           |        |
| `GridLineStyle<weblistbox.gridlinestyle>`                 | `GridLineStyles<weblistbox.gridlinestyles>`        |           |        |
| `HasBorder<weblistbox.hasborder>`                         | `Boolean</api/data_types/boolean>`                 |           |        |
| `HasHeader<weblistbox.hasheader>`                         | `Boolean</api/data_types/boolean>`                 |           |        |
| `HeaderHeight<weblistbox.headerheight>`                   | `Integer</api/data_types/integer>`                 |           |        |
| `Height<weblistbox.height>`                               | `Integer</api/data_types/integer>`                 |           |        |
| `HighlightSortedColumn<weblistbox.highlightsortedcolumn>` | `Boolean</api/data_types/boolean>`                 |           |        |
| `Indicator<weblistbox.indicator>`                         | `Indicators<webuicontrol.indicators>`              |           |        |
| `LastAddedRowIndex<weblistbox.lastaddedrowindex>`         | `Integer</api/data_types/integer>`                 | ✓         |        |
| `LastColumnIndex<weblistbox.lastcolumnindex>`             | `Integer</api/data_types/integer>`                 | ✓         |        |
| `LastRowIndex<weblistbox.lastrowindex>`                   | `Integer</api/data_types/integer>`                 | ✓         |        |
| `Left<weblistbox.left>`                                   | `Integer</api/data_types/integer>`                 |           |        |
| `LockBottom<weblistbox.lockbottom>`                       | `Boolean</api/data_types/boolean>`                 |           |        |
| `LockHorizontal<weblistbox.lockhorizontal>`               | `Boolean</api/data_types/boolean>`                 |           |        |
| `LockLeft<weblistbox.lockleft>`                           | `Boolean</api/data_types/boolean>`                 |           |        |
| `LockRight<weblistbox.lockright>`                         | `Boolean</api/data_types/boolean>`                 |           |        |
| `LockTop<weblistbox.locktop>`                             | `Boolean</api/data_types/boolean>`                 |           |        |
| `LockVertical<weblistbox.lockvertical>`                   | `Boolean</api/data_types/boolean>`                 |           |        |
| `Name<weblistbox.name>`                                   | `String</api/data_types/string>`                   | ✓         |        |
| `NoRowsMessage<weblistbox.norowsmessage>`                 | `String</api/data_types/string>`                   |           |        |
| `Page<weblistbox.page>`                                   | `WebPage</api/user_interface/web/webpage>`         | ✓         |        |
| `PanelIndex<weblistbox.panelindex>`                       | `Integer</api/data_types/integer>`                 |           |        |
| `Parent<weblistbox.parent>`                               | `WebView</api/user_interface/web/webview>`         | ✓         |        |
| `ProcessingMessage<weblistbox.processingmessage>`         | `String</api/data_types/string>`                   |           |        |
| `RowCount<weblistbox.rowcount>`                           | `Integer</api/data_types/integer>`                 | ✓         |        |
| `RowSelectionType<weblistbox.rowselectiontype>`           | `RowSelectionTypes<weblistbox.rowselectiontypes>`  |           |        |
| `SearchCriteria<weblistbox.searchcriteria>`               | `String</api/data_types/string>`                   |           |        |
| `SelectedRowColor<weblistbox.selectedrowcolor>`           | `ColorGroup</api/graphics/colorgroup>`             |           |        |
| `SelectedRowIndex<weblistbox.selectedrowindex>`           | `Integer</api/data_types/integer>`                 |           |        |
| `TabIndex<weblistbox.tabindex>`                           | `Integer</api/data_types/integer>`                 |           |        |
| `Tooltip<weblistbox.tooltip>`                             | `WebToolTip</api/user_interface/web/webtooltip>`   |           |        |
| `Top<weblistbox.top>`                                     | `Integer</api/data_types/integer>`                 |           |        |
| `Visible<weblistbox.visible>`                             | `Boolean</api/data_types/boolean>`                 |           |        |
| `Width<weblistbox.width>`                                 | `Integer</api/data_types/integer>`                 |           |        |

## Methods

<div class="rst-class">

table-centered_column_4

</div>

| Name                                                      | Parameters                                                                                                                                                          | Returns                                                     | Shared |
|-----------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------|--------|
| `AcceptPictureDrop<weblistbox.acceptpicturedrop>`         | dragActionType As `WebDragItem.DragActionTypes<webdragitem.dragactiontypes>` = `WebDragItem.DragActionTypes.All<webdragitem.dragactiontypes>`                       |                                                             |        |
| `AcceptRawDataDrop<weblistbox.acceptrawdatadrop>`         | dragActionType As `WebDragItem.DragActionTypes<webdragitem.dragactiontypes>` = `WebDragItem.DragActionTypes.All<webdragitem.dragactiontypes>`                       |                                                             |        |
| `AcceptTextDrop<weblistbox.accepttextdrop>`               | dragActionType As `WebDragItem.DragActionTypes<webdragitem.dragactiontypes>` = `WebDragItem.DragActionTypes.All<webdragitem.dragactiontypes>`                       |                                                             |        |
| `AddRow<weblistbox.addrow>`                               | `ParamArray</api/language/paramarray>` data As `String</api/data_types/string>`                                                                                     |                                                             |        |
| `AddRowAt<weblistbox.addrowat>`                           | index As `Integer</api/data_types/integer>`, `ParamArray</api/language/paramarray>` items() As `String</api/data_types/string>`                                     |                                                             |        |
| `AllowPictureDrag<weblistbox.allowpicturedrag>`           | dragActionType As `WebDragItem.DragActionTypes<webdragitem.dragactiontypes>` = `WebDragItem.DragActionTypes.All<webdragitem.dragactiontypes>`                       |                                                             |        |
| `AllowRawDataDrag<weblistbox.allowrawdatadrag>`           | dragActionType As `WebDragItem.DragActionTypes<webdragitem.dragactiontypes>` = `WebDragItem.DragActionTypes.All<webdragitem.dragactiontypes>`                       |                                                             |        |
| `AllowTextDrag<weblistbox.allowtextdrag>`                 | dragActionType As `WebDragItem.DragActionTypes<webdragitem.dragactiontypes>` = `WebDragItem.DragActionTypes.All<webdragitem.dragactiontypes>`                       |                                                             |        |
| `CellHintAt<weblistbox.cellhintat>`                       | row As `Integer</api/data_types/integer>`, column As `Integer</api/data_types/integer>`                                                                             | `String</api/data_types/string>`                            |        |
|                                                           | row As `Integer</api/data_types/integer>`, column As `Integer</api/data_types/integer>`, `Assigns</api/language/assigns>` value As `String</api/data_types/string>` |                                                             |        |
| `CellRendererAt<weblistbox.cellrendererat>`               | row As `Integer</api/data_types/integer>`, column As `Integer</api/data_types/integer>`                                                                             | `Variant</api/data_types/variant>`                          |        |
| `CellTagAt<weblistbox.celltagat>`                         | row As `Integer</api/data_types/integer>`, column As `Integer</api/data_types/integer>`                                                                             | `Variant</api/data_types/variant>`                          |        |
|                                                           | row As `Integer</api/data_types/integer>`, column As `Integer</api/data_types/integer>`, `Assigns</api/language/assigns>` value `Variant</api/data_types/variant>`  |                                                             |        |
| `CellTextAt<weblistbox.celltextat>`                       | row As `Integer</api/data_types/integer>`, column As `Integer</api/data_types/integer>`                                                                             | `String</api/data_types/string>`                            |        |
|                                                           | row As `Integer</api/data_types/integer>`, column As `Integer</api/data_types/integer>`, `Assigns</api/language/assigns>` value As `String</api/data_types/string>` |                                                             |        |
| `CellTypeAt<weblistbox.celltypeat>`                       | row As `Integer</api/data_types/integer>`, column As `Integer</api/data_types/integer>`                                                                             | `CellTypes<weblistbox.celltypes>`                           |        |
|                                                           | row As `Integer</api/data_types/integer>`, column As `Integer</api/data_types/integer>`, `Assigns</api/language/assigns>` value `CellTypes<weblistbox.celltypes>`   |                                                             |        |
| `Close<weblistbox.close>`                                 |                                                                                                                                                                     |                                                             |        |
| `ColumnAlignmentAt<weblistbox.columnalignmentat>`         | index As `Integer</api/data_types/integer>`                                                                                                                         | `WebListBox.Alignments<weblistbox.alignments>`              |        |
|                                                           | index As `Integer</api/data_types/integer>`, `Assigns</api/language/assigns>` value As `WebListBox.Alignments<weblistbox.alignments>`                               |                                                             |        |
| `ColumnSortDirectionAt<weblistbox.columnsortdirectionat>` | index As `Integer</api/data_types/integer>`                                                                                                                         | `SortDirections<weblistbox.sortdirections>`                 |        |
|                                                           | index As `Integer</api/data_types/integer>`, `Assigns</api/language/assigns>` value As `SortDirections<weblistbox.sortdirections>`                                  |                                                             |        |
| `ColumnSortTypeAt<weblistbox.columnsorttypeat>`           | index As `Integer</api/data_types/integer>`                                                                                                                         | `WebListBox.SortTypes<weblistbox.sorttypes>`                |        |
|                                                           | index As `Integer</api/data_types/integer>`, `Assigns</api/language/assigns>` value As `WebListBox.SortTypes<weblistbox.sorttypes>`                                 |                                                             |        |
| `ColumnTagAt<weblistbox.columntagat>`                     | index As `Integer</api/data_types/integer>`                                                                                                                         | `Variant</api/data_types/variant>`                          |        |
|                                                           | index As `Integer</api/data_types/integer>`, `Assigns</api/language/assigns>` value As `Variant</api/data_types/variant>`                                           |                                                             |        |
| `ColumnTypeAt<weblistbox.columntypeat>`                   | index As `Integer</api/data_types/integer>`                                                                                                                         | `CellTypes<weblistbox.celltypes>`                           |        |
|                                                           | row As `Integer</api/data_types/integer>`, `Assigns</api/language/assigns>` value `CellTypes<weblistbox.celltypes>`                                                 |                                                             |        |
| `CSSClasses<weblistbox.cssclasses>`                       |                                                                                                                                                                     | `WebCSSClasses</api/web/webcssclasses>`                     |        |
| `EditCellAt<weblistbox.editcellat>`                       | row As `Integer</api/data_types/integer>`, column As `Integer</api/data_types/integer>`                                                                             |                                                             |        |
| `ExecuteJavaScript<weblistbox.executejavascript>`         | script As `String</api/data_types/string>`                                                                                                                          |                                                             |        |
| `FrozenColumns<weblistbox.frozencolumns>`                 |                                                                                                                                                                     | `WebListBoxFrozenColumns</api/web/weblistboxfrozencolumns>` |        |
| `GotoURL<weblistbox.gotourl>`                             | url As `String</api/data_types/string>`, inNewWindow As `Boolean</api/data_types/boolean>` = `False</api/language/false>`                                           |                                                             |        |
| `HeaderAt<weblistbox.headerat>`                           | index As `Integer</api/data_types/integer>`                                                                                                                         | `String</api/data_types/string>`                            |        |
|                                                           | index As `Integer</api/data_types/integer>`, `Assigns</api/language/assigns>` value As `String</api/data_types/string>`                                             |                                                             |        |
| `ReloadFromDataSource<weblistbox.reloadfromdatasource>`   |                                                                                                                                                                     |                                                             |        |
| `RemoveAllRows<weblistbox.removeallrows>`                 |                                                                                                                                                                     |                                                             |        |
| `RemoveRowAt<weblistbox.removerowat>`                     | index As `Integer</api/data_types/integer>`                                                                                                                         |                                                             |        |
| `RowTagAt<weblistbox.rowtagat>`                           | row As `Integer</api/data_types/integer>`                                                                                                                           | `Variant</api/data_types/variant>`                          |        |
|                                                           | row As `Integer</api/data_types/integer>`, `Assigns</api/language/assigns>` value `Variant</api/data_types/variant>`                                                |                                                             |        |
| `ScrollTo<weblistbox.scrollto>`                           | rowIndex As `Integer</api/data_types/integer>`                                                                                                                      |                                                             |        |
| `Selected<weblistbox.selected>`                           | row As `Integer</api/data_types/integer>`                                                                                                                           | `Boolean</api/data_types/boolean>`                          |        |
|                                                           | row As `Integer</api/data_types/integer>`, `Assigns</api/language/assigns>` selected As `Boolean</api/data_types/boolean>`                                          |                                                             |        |
| `SelectedRowCount<weblistbox.selectedrowcount>`           |                                                                                                                                                                     | `Integer</api/data_types/integer>`                          |        |
| `SelectedRowText<weblistbox.selectedrowtext>`             |                                                                                                                                                                     | `String</api/data_types/string>`                            |        |
| `SetFocus<weblistbox.setfocus>`                           |                                                                                                                                                                     |                                                             |        |
| `Style<weblistbox.style>`                                 |                                                                                                                                                                     | `WebStyle</api/user_interface/web/webstyle>`                |        |
|                                                           | `Assigns</api/language/assigns>` style As `WebStyle</api/user_interface/web/webstyle>`                                                                              |                                                             |        |
| `UpdateBrowser<weblistbox.updatebrowser>`                 |                                                                                                                                                                     |                                                             |        |

## Events

<div class="rst-class">

table-centered_column_4

</div>

| Name                                                        | Parameters                                                                                                                                                                                                        | Returns |
|-------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------|
| `CellAction<weblistbox.cellaction>`                         | row As `Integer</api/data_types/integer>`, column As `Integer</api/data_types/integer>`, value As `Variant</api/data_types/variant>`                                                                              |         |
| `CellFocusLost<weblistbox.cellfocuslost>`                   | row As `Integer</api/data_types/integer>`, column As `Integer</api/data_types/integer>`                                                                                                                           |         |
| `CellFocusReceived<weblistbox.cellfocusreceived>`           | row As `Integer</api/data_types/integer>`, column As `Integer</api/data_types/integer>`                                                                                                                           |         |
| `Closed<weblistbox.closed>`                                 |                                                                                                                                                                                                                   |         |
| `ContextualMenuSelected<weblistbox.contextualmenuselected>` | hitItem As `WebMenuItem</api/user_interface/web/webmenuitem>`                                                                                                                                                     |         |
| `CustomCellAction<weblistbox.customcellaction>`             | row As `Integer</api/data_types/integer>`, column As `Integer</api/data_types/integer>`, identifier As `String</api/data_types/string>`, value As `Variant</api/data_types/variant>`                              |         |
| `DoublePressed<weblistbox.doublepressed>`                   | row As `Integer</api/data_types/integer>`, column As `Integer</api/data_types/integer>`                                                                                                                           |         |
| `DropObject<weblistbox.dropobject>`                         | obj As `WebDragItem</api/user_interface/web/webdragitem>`, action As `WebDragItem.DragActionTypes<webdragitem.dragactiontypes>`, x As `Integer</api/data_types/integer>`, y As `Integer</api/data_types/integer>` |         |
| `Error<weblistbox.error>`                                   | error As `RuntimeException</api/exceptions/runtimeexception>`                                                                                                                                                     |         |
| `Hidden<weblistbox.hidden>`                                 |                                                                                                                                                                                                                   |         |
| `Opening<weblistbox.opening>`                               |                                                                                                                                                                                                                   |         |
| `Pressed<weblistbox.pressed>`                               | row As `Integer</api/data_types/integer>`, column As `Integer</api/data_types/integer>`                                                                                                                           |         |
| `RowsReordered<weblistbox.rowsreordered>`                   | newPosition As `Integer</api/data_types/integer>`, oldPosition As `Integer</api/data_types/integer>`                                                                                                              |         |
| `SelectionChanged<weblistbox.selectionchanged>`             | rows() As `Integer</api/data_types/integer>`                                                                                                                                                                      |         |
| `Shown<weblistbox.shown>`                                   |                                                                                                                                                                                                                   |         |

## Enumerations

<div id="weblistbox.alignments">

<div class="rst-class">

forsearch

</div>

</div>

WebListBox.Alignments

### Alignments

> Used to indicate how data in a column should be aligned.
>
> | Enum    | Description                                          |
> |---------|------------------------------------------------------|
> | Default | The OS-specific default alignment.                   |
> | Left    | The cell value will be left-justified.               |
> | Center  | The cell value will be center-aligned.               |
> | Right   | The cell value will be right-justified.              |
> | Decimal | The cell value will be aligned to the decimal point. |

<div id="weblistbox.celltypes">

<div class="rst-class">

forsearch

</div>

</div>

WebListBox.CellTypes

### CellTypes

> Used to indicate the type of control that should appear in a cell.
>
> | Enum      | Description                                           |
> |-----------|-------------------------------------------------------|
> | CheckBox  | A standard checkbox that can be checked or unchecked. |
> | Default   | The same as the type set for the cell's column.       |
> | Normal    | Displays the value and is not editable by the user.   |
> | TextArea  | Allows multiple paragraphs of text.                   |
> | TextField | Allows a single paragraph of text.                    |

<div id="weblistbox.gridlinestyles">

<div class="rst-class">

forsearch

</div>

</div>

WebListBox.GridLineStyles

### GridLineStyles

> Used to indicate if vertical and/or horizontal gridlines should appear or not.
>
> | Enum       | Description                             |
> |------------|-----------------------------------------|
> | None       | No gridlines. This is the default.      |
> | Horizontal | Horizontal gridlines only.              |
> | Vertical   | Vertical gridlines only.                |
> | Both       | Both horizontal and vertical gridlines. |

<div id="weblistbox.rowselectiontypes">

<div class="rst-class">

forsearch

</div>

</div>

WebListBox.RowSelectionTypes

### RowSelectionTypes

> Indicates how many rows can be selected at a time.
>
> | Enum     | Description                             |
> |----------|-----------------------------------------|
> | Multiple | Any number of rows can be selected.     |
> | None     | No rows can be selected.                |
> | Single   | Only one row at a time can be selected. |

<div id="weblistbox.sortdirections">

<div class="rst-class">

forsearch

</div>

</div>

WebListBox.SortDirections

### SortDirections

> Indicates the various directions upon which rows can be sorted.
>
> | Enum       | Description                           |
> |------------|---------------------------------------|
> | Ascending  | The rows will be sorted in A-Z order. |
> | Descending | The rows will e sorted in Z-A order.  |
> | None       | The rows will not be sorted.          |

<div id="weblistbox.sorttypes">

<div class="rst-class">

forsearch

</div>

</div>

WebListBox.SortTypes

### SortTypes

> Indicates whether or not the column can be sorted.
>
> | Enum       | Description                                                                                |
> |------------|--------------------------------------------------------------------------------------------|
> | Sortable   | A widget appears in the column header allowing the user to sort the column.                |
> | Unsortable | The column cannot be sorted by the user, thus no sort widget appears in the column header. |

## Property descriptions

<div id="weblistbox.allowrowreordering">

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

</div>

<div class="rst-class">

forsearch

</div>

DesktopListBox.AllowRowReordering

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

> If `True</api/language/true>`, you can reorder rows within the <span class="title-ref">WebListBox</span> by dragging rows.
>
> An insertion line indicator appears when dragging within the <span class="title-ref">WebListBox</span> to provide you with visual feedback as to where the row would be dropped if you release the mouse button.
>
> This example enables the drag reorder feature.
>
> ``` xojo
> Me.AllowRowReordering = True
> ```

<div id="weblistbox.columncount">

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

</div>

<div class="rst-class">

forsearch

</div>

WebListBox.ColumnCount

**ColumnCount** As `Integer</api/data_types/integer>`

> Gets or sets the number of columns in the ListBox. ColumnCount is 1-based.
>
> Setting the number of columns to 2 in the Opening event:
>
> ``` xojo
> Me.ColumnCount = 2
> ```
>
> Iterating through the rows and columns to set the cell values:
>
> ``` xojo
> ' Add 5 Rows
> For i As Integer = 1 To 5
>   ListBox1.AddRow("")
> Next
>
> For row As Integer = 0 To ListBox1.RowCount - 1
>   For col As Integer = 0 To ListBox1.ColumnCount - 1
>     ListBox1.CellTextAt(row, col) = row.ToString + "," + col.ToString
>   Next
> Next
> ```

<div id="weblistbox.columnwidths">

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

</div>

<div class="rst-class">

forsearch

</div>

WebListBox.ColumnWidths

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

> A list of comma separated values, with each value controlling the width of the associated column. A value can be an absolute value (in pixels), a percentage, a relative length expressed as "i\*" where *i* is an integer, or an "\*" that indicates "fill in the remaining width". If you use percentages, you can use non-integer values to specify fractions of a percent, e.g., 43.52%. The percentage value can be greater than 100%.
>
> If you use pixels, the last column doesn't grow to the size of the rest of the ListBox. You should set the width of the last column to "\*" and it will automatically take up the remaining width of the ListBox.
>
> Without any column width specifications, the headers will be divided evenly. If there are fewer column widths specified than the total number of columns, the remaining columns will divide up the remaining width equally.
>
> The following creates two columns with 100 pixels per column:
>
> ``` xojo
> Me.ColumnCount = 2
> Me.ColumnWidths = "100,100"
> ```
>
> The following uses the \* to specify the last column's width:
>
> ``` xojo
> Me.ColumnCount = 3
> Me.ColumnWidths = "100,100,*"
> ```

<div id="weblistbox.contextualmenu">

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

</div>

<div class="rst-class">

forsearch

</div>

WebListBox.ContextualMenu

**ContextualMenu** As `WebMenuItem</api/user_interface/web/webmenuitem>`

> If you assign a `WebMenuItem</api/user_interface/web/webmenuitem>` to the control, it will be displayed when the user right-clicks the control.
>
> On a `WebPage</api/user_interface/web/webpage>`, you can disable/remove the default contextual menu by an empty `WebMenuItem</api/user_interface/web/webmenuitem>` class object to this property.
>
> This code populates a contextual menu in the Shown event of the control.
>
> ``` xojo
> Var menu As New WebMenuItem
>
> menu.AddMenuItem("One")
> menu.AddMenuItem("Two")
> menu.AddMenuItem("Three")
> Me.ContextualMenu = menu
> ```
>
> The menu selection is then handled by the ContextualMenuSelected event when the user right-clicks on the control. For example, it can be of the form:
>
> ``` xojo
> Select Case hitItem.Text
> Case "One"
>   MessageBox("One")
> Case "Two"
>   MessageBox("Two")
> Case "Three"
>   MessageBox("Three")
> End Select
> ```

<div id="weblistbox.controlid">

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

</div>

<div class="rst-class">

forsearch

</div>

WebListBox.ControlID

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

> Identifies the control on a per session basis.
>
> This property is read-only.

<div id="weblistbox.datasource">

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

</div>

<div class="rst-class">

forsearch

</div>

WebListBox.DataSource

**DataSource** As `WebDataSource</api/web/webdatasource>`

> An optional data source to use to populate the list box.

<div id="weblistbox.defaultrowheight">

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

</div>

<div class="rst-class">

forsearch

</div>

WebListBox.DefaultRowHeight

**DefaultRowHeight** As `Integer</api/data_types/integer>`

> Determines the height of every row in the <span class="title-ref">WebListBox</span> in points. Every row in the ListBox is always the same height.
>
> Use a value of -1 to have the height automatically determined by the current font size.
>
> This example increases the default row height.
>
> ``` xojo
> Me.DefaultRowHeight = 35
> ```

<div id="weblistbox.enabled">

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

</div>

<div class="rst-class">

forsearch

</div>

WebListBox.Enabled

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

> When `True</api/language/true>` the **WebControl** is drawn enabled and responds to user action. When `False</api/language/false>`, the control appears as disabled and does not respond to user actions.
>
> In the case of `WebTimer</api/web/webtimer>`, when set to `False</api/language/false>` this disables and stops the WebTimer. When set to `True</api/language/true>`, it starts the WebTimer.
>
> Disable a button when a check box value changes:
>
> ``` xojo
> If AllowSaveCheckBox.Value Then
>   SaveButton.Enabled = True
> Else
>   AllowSaveButton.Enabled = False
> End If
> ```

<div id="weblistbox.gridlinestyle">

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

</div>

<div class="rst-class">

forsearch

</div>

WebListBox.GridLineStyle

**GridLineStyle** As `GridLineStyles<weblistbox.gridlinestyles>`

> The orientations of gridlines that can be displayed.

<div id="weblistbox.hasborder">

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

</div>

<div class="rst-class">

forsearch

</div>

WebListBox.HasBorder

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

> Indicates whether or not the border is visible.

<div id="weblistbox.hasheader">

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

</div>

<div class="rst-class">

forsearch

</div>

WebListBox.HasHeader

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

> If `True</api/language/true>`, the header row is displayed.
>
> This property is `True</api/language/true>` by default.

<div id="weblistbox.headerheight">

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

</div>

<div class="rst-class">

forsearch

</div>

WebListBox.HeaderHeight

**HeaderHeight** As `Integer</api/data_types/integer>`

> The height of the header row in points.
>
> This example displays the height of the header row. It is in the Pressed event of a `Button</api/user_interface/web/webbutton>` control.
>
> ``` xojo
> Var h As Integer = Listbox1.HeaderHeight
> ```

<div id="weblistbox.height">

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

</div>

<div class="rst-class">

forsearch

</div>

WebListBox.Height

**Height** As `Integer</api/data_types/integer>`

> The height (in pixels) of the control.

<div id="weblistbox.highlightsortedcolumn">

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

</div>

<div class="rst-class">

forsearch

</div>

WebListBox.HighlightSortedColumn

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

> If `True</api/language/true>`, the sorted column will be highlighted.

<div id="weblistbox.indicator">

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

</div>

<div class="rst-class">

forsearch

</div>

WebListBox.Indicator

**Indicator** As `Indicators<webuicontrol.indicators>`

> The color scheme for the control.

<div id="weblistbox.lastaddedrowindex">

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

</div>

<div class="rst-class">

forsearch

</div>

WebListBox.LastAddedRowIndex

**LastAddedRowIndex** As `Integer</api/data_types/integer>`

> The index of the last row added with the AddRow or AddRowAt method.
>
> This property is read-only.

<div id="weblistbox.lastcolumnindex">

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

</div>

<div class="rst-class">

forsearch

</div>

WebListBox.LastColumnIndex

**LastColumnIndex** As `Integer</api/data_types/integer>`

> The index of the last column. The last column is the one with the highest index value.
>
> This property is read-only.

<div id="weblistbox.lastrowindex">

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

</div>

<div class="rst-class">

forsearch

</div>

WebListBox.LastRowIndex

**LastRowIndex** As `Integer</api/data_types/integer>`

> The index of the last row in the <span class="title-ref">WebListBox</span>.
>
> This property is read-only.

<div id="weblistbox.left">

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

</div>

<div class="rst-class">

forsearch

</div>

WebListBox.Left

**Left** As `Integer</api/data_types/integer>`

> The position of the left side of the **WebUIControl** in pixels, relative to the web page.

<div id="weblistbox.lockbottom">

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

</div>

<div class="rst-class">

forsearch

</div>

WebListBox.LockBottom

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

> Determines whether the bottom edge of the control should stay at a set distance from the bottom edge of the parent control, if there is one, or the owning web page.

<div id="weblistbox.lockhorizontal">

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

</div>

<div class="rst-class">

forsearch

</div>

WebListBox.LockHorizontal

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

> LockHorizontal overrides LockLeft and LockRight. It allows you to proportionally lock a control's position to the center of its parent control (or web page).
>
> For example, if you place a control in the center of the page and sets both LockHorizontal and LockVertical, the control will stay in the center of the page.

<div id="weblistbox.lockleft">

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

</div>

<div class="rst-class">

forsearch

</div>

WebListBox.LockLeft

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

> Determines whether the left edge of the control should stay at a set distance from the left edge of the parent control, if there is one, or the owning web page.

<div id="weblistbox.lockright">

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

</div>

<div class="rst-class">

forsearch

</div>

WebListBox.LockRight

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

> Determines whether the right edge of the control should stay at a set distance from the right edge of the parent control, if there is one, or the owning web page.

<div id="weblistbox.locktop">

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

</div>

<div class="rst-class">

forsearch

</div>

WebListBox.LockTop

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

> Determines whether the top edge of the control should stay at a set distance from the top edge of the parent control, if there is one, or the owning web page.

<div id="weblistbox.lockvertical">

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

</div>

<div class="rst-class">

forsearch

</div>

WebListBox.LockVertical

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

> LockVertical overrides LockTop and LockBottom. It allows you to proportionally lock a control's position to keep it centered within the parent control or web page.
>
> For example, if you place a control in the center of the page, and sets both LockHorizontal and LockVertical, the control will stay in the center of the page.

<div id="weblistbox.name">

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

</div>

<div class="rst-class">

forsearch

</div>

WebListBox.Name

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

> The name of the control.
>
> This property is read-only.

<div id="weblistbox.norowsmessage">

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

</div>

<div class="rst-class">

forsearch

</div>

WebListBox.NoRowsMessage

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

> The text that appears when the <span class="title-ref">WebListBox</span> has no rows displayed.

<div id="weblistbox.page">

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

</div>

<div class="rst-class">

forsearch

</div>

WebListBox.Page

**Page** As `WebPage</api/user_interface/web/webpage>`

> Identifies the web page that contains the control.
>
> This property is read-only.

<div id="weblistbox.panelindex">

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

</div>

<div class="rst-class">

forsearch

</div>

WebListBox.PanelIndex

**PanelIndex** As `Integer</api/data_types/integer>`

> If the control has been placed on a <span class="title-ref">WebTabPanel</span> or `WebPagePanel</api/user_interface/web/webpagepanel>` control, this is the panel (page/tab) that the control is on. If the control is not on a panel, it returns -1.
>
> The first panel is numbered zero. If the control has been placed on a panel of a <span class="title-ref">WebTabPanel</span> or `WebPagePanel</api/user_interface/web/webpagepanel>` control, it returns the panel number. If the control is not on a `WebPagePanel</api/user_interface/web/webpagepanel>` or <span class="title-ref">WebTabPanel</span>, it returns -1. If you change the PanelIndex to a nonexistent panel, the control will disappear until you give it a PanelIndex value that corresponds to a panel that exists.
>
> If you are looking to change the currently selected panel (page/tab), use `SelectedPanelIndex<webpagecontrol.selectedpanelindex>`.
>
> This code displays the panel index of the control that is on the page.
>
> ``` xojo
> MessageBox(Me.SelectedPanelIndex.ToString)
> ```

<div id="weblistbox.parent">

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

</div>

<div class="rst-class">

forsearch

</div>

WebListBox.Parent

**Parent** As `WebView</api/user_interface/web/webview>`

> Used to get the control's parent control or page. If the parent control is a `WebContainer</api/user_interface/web/webcontainer>`, then it returns the `WebContainer</api/user_interface/web/webcontainer>`. If it is on a `WebPage</api/user_interface/web/webpage>`, it returns the `WebPage</api/user_interface/web/webpage>`.
>
> This property is read-only.

<div id="weblistbox.processingmessage">

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

</div>

<div class="rst-class">

forsearch

</div>

WebListBox.ProcessingMessage

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

> Text displayed while the <span class="title-ref">WebListBox</span> is fetching data from a `datasource<weblistbox.datasource>`.

<div id="weblistbox.rowcount">

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

</div>

<div class="rst-class">

forsearch

</div>

WebListBox.RowCount

**RowCount** As `Integer</api/data_types/integer>`

> Returns the number of rows in the <span class="title-ref">WebListBox</span>, not including the header row.
>
> This property is read-only.
>
> This example loops through all the rows in the Listbox and clears the second column:
>
> ``` xojo
> For row As Integer = 0 To WebListBox1.RowCount - 1
>   WebListBox.CellTextAt(row, 1) = ""
> Next
> ```

<div id="weblistbox.rowselectiontype">

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

</div>

<div class="rst-class">

forsearch

</div>

WebListBox.RowSelectionType

**RowSelectionType** As `RowSelectionTypes<weblistbox.rowselectiontypes>`

> Dictates the type of row selection: none, single or multiple.
>
> In this example, the RowSelectionType is set to multiple in the `Opening<webcontrol.opening>` event of the \`WebListBox\`:
>
> ``` xojo
> Me.RowSelectionType = WebListBox.RowSelectionTypes.Multiple
> ```

<div id="weblistbox.searchcriteria">

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

</div>

<div class="rst-class">

forsearch

</div>

WebListBox.SearchCriteria

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

> Used to filter rows based upon the value assigned.
>
> If this property is assigned a value, the <span class="title-ref">WebListBox</span> will perform a full-text search on all rows and columns. The contents of the <span class="title-ref">WebListBox</span> will be reduced to only those rows with a column value that matches the search criteria assigned to this property.
>
> The keyword **AND** can be used to find rows that include multiple words. For example, `Baggins AND Brandybuck` will find rows that contain both words. It must be entered in all uppercase letters or it will be treated as a search value rather than as a keyword.
>
> They keyword **OR** can be used to find rows that include any one of multiple words. For example, `Baggins AND Brandybuck` will find rows that contain either word. It must be entered in all uppercase letters or it will be treated as a search value rather than as a keyword.
>
> The \*\*\*\*\* symbol can be used to find rows with values that begin with a set of characters. For example, `Bag*` will find rows where a value begins with `Bag`.
>
> Searching is case-insensitive.
>
> Because the data in a <span class="title-ref">WebListBox</span> is stored in a SQLite Database behind the scenes, the full-text search is done by SQLite and thus you can use the [full-text search filtering](https://www.sqlite.org/fts5.html#full_text_query_syntax) capabilities of SQLite.
>
> Updating the <span class="title-ref">WebListBox</span> will automatically reindex the data unless you are using the `WebListBox.DataSource` in which case you will have to perform the queries yourself.
>
> SearchCriteria won't do anything special when using a `WebDataSource</api/web/webdatasource>`, but it will fire immediately some of this interface methods. When you use it without a `WebDataSource</api/web/webdatasource>`, it performs the search immediately.
>
> You can add a SearchCriteria property also to your `WebDataSource</api/web/webdatasource>`, and set both (`WebDataSource</api/web/webdatasource>` first, then <span class="title-ref">WebListBox</span>) when the text field changes, so you can do some filtering.
>
> <div class="important">
>
> <div class="title">
>
> Important
>
> </div>
>
> This property is not supported when a `WebDataSource</api/web/webdatasource>` is used to display the data.
>
> </div>

<div id="weblistbox.selectedrowcolor">

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

</div>

<div class="rst-class">

forsearch

</div>

WebListBox.SelectedRowColor

**SelectedRowColor** As `ColorGroup</api/graphics/colorgroup>`

> The color used to draw the background of a row when selected.
>
> From the `Opening<webcontrol.opening>` event, set the SelectedRowColor property to blue:
>
> ``` xojo
> Me.SelectedRowColor = Color.Blue
> ```

<div id="weblistbox.selectedrowindex">

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

</div>

<div class="rst-class">

forsearch

</div>

WebListBox.SelectedRowIndex

**SelectedRowIndex** As `Integer</api/data_types/integer>`

> The index of the selected row.
>
> If no row is selected SelectedRowIndex will be -1. If multiple rows are selected, SelectedRowIndex will be the index of the first selected row.
>
> If the `RowSelectionType<weblistbox.rowselectiontype>` is Multiple, you can use the `Selected<weblistbox.selected>` method to determine which rows are selected.
>
> If you set the <span class="title-ref">SelectedRowIndex</span> to a value that is out of bounds, an `OutOfBoundsException</api/exceptions/outofboundsexception>` will be raised.
>
> The following code in the `SelectionChanged<weblistbox.selectionchanged>` event handler displays the text in the first column of the selected row:
>
> ``` xojo
> If Me.SelectedRowIndex >= 0 Then
>   MessageBox(Me.CellTextAt(Me.SelectedRowIndex, 0))
> End If
> ```
>
> This example displays a message if no row is selected:
>
> ``` xojo
> If ListBox1.SelectedRowIndex = -1 Then
>   MessageBox("Please select a row first.")
> End If
> ```
>
> This example selects the first row in the ListBox:
>
> ``` xojo
> ListBox1.SelectedRowIndex = 0
> ```

<div id="weblistbox.tabindex">

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

</div>

<div class="rst-class">

forsearch

</div>

WebListBox.TabIndex

**TabIndex** As `Integer</api/data_types/integer>`

> The **WebListBox's** control's position in the Tab Order. The control with a TabIndex of 0 is the first **WebUIControl** to get the focus when the page opens in the browser.
>
> This example sets the control's TabIndex.
>
> ``` xojo
> Me.TabIndex = 2
> ```

<div id="weblistbox.tooltip">

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

</div>

<div class="rst-class">

forsearch

</div>

WebListBox.Tooltip

**Tooltip** As `WebToolTip</api/user_interface/web/webtooltip>`

> Text of a message displayed as a tooltip.
>
> The tip is displayed when the user places the mouse on the control and leaves it there.
>
> This code in the Shown event of a Button sets the tooltip:
>
> ``` xojo
> Me.Tooltip = "Save changes"
> ```

<div id="weblistbox.top">

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

</div>

<div class="rst-class">

forsearch

</div>

WebListBox.Top

**Top** As `Integer</api/data_types/integer>`

> The top of the control in local coordinates relative to the web page.

<div id="weblistbox.visible">

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

</div>

<div class="rst-class">

forsearch

</div>

WebListBox.Visible

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

> If `True</api/language/true>`, the control is drawn. If `False</api/language/false>`, it's not.
>
> Hide a control based on a checkbox setting:
>
> ``` xojo
> If ShowEmailCheckbox.Value Then
>   EmailField.Visible = True
> Else
>   EmailField.Visible = False
> End If
> ```

<div id="weblistbox.width">

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

</div>

<div class="rst-class">

forsearch

</div>

WebListBox.Width

**Width** As `Integer</api/data_types/integer>`

> The width (in pixels) of the web control.
>
> This code in the Shown event handler increases the size of the control:
>
> ``` xojo
> Me.Width = Me.Width + 50
> ```

## Method descriptions

<div id="weblistbox.acceptpicturedrop">

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

</div>

<div class="rst-class">

forsearch

</div>

WebListBox.AcceptPictureDrop

**AcceptPictureDrop**(dragActionType As `WebDragItem.DragActionTypes<webdragitem.dragactiontypes>` = `WebDragItem.DragActionTypes.All<webdragitem.dragactiontypes>`)

> Allows the control to accept a picture drop of a `WebDragItem</api/user_interface/web/webdragitem>`.

<div id="weblistbox.acceptrawdatadrop">

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

</div>

<div class="rst-class">

forsearch

</div>

WebListBox.AcceptRawDataDrop

**AcceptRawDataDrop**(dragActionType As `WebDragItem.DragActionTypes<webdragitem.dragactiontypes>` = `WebDragItem.DragActionTypes.All<webdragitem.dragactiontypes>`)

> Allows the control to accept a raw data drop of a `WebDragItem</api/user_interface/web/webdragitem>`.

<div id="weblistbox.accepttextdrop">

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

</div>

<div class="rst-class">

forsearch

</div>

WebListBox.AcceptTextDrop

**AcceptTextDrop**(dragActionType As `WebDragItem.DragActionTypes<webdragitem.dragactiontypes>` = `WebDragItem.DragActionTypes.All<webdragitem.dragactiontypes>`)

> Allows the control to accept a picture drop of a `WebDragItem</api/user_interface/web/webdragitem>`.

<div id="weblistbox.addrow">

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

</div>

<div class="rst-class">

forsearch

</div>

WebListBox.AddRow

**AddRow**(`ParamArray</api/language/paramarray>` data As `String</api/data_types/string>`)

> Adds a new row to the <span class="title-ref">WebListBox</span>.
>
> The AddRow method allows you to pass in multiple strings as separate parameters. Each parameter will be placed into the its corresponding column in the new row starting with the first column.
>
> <div class="important">
>
> <div class="title">
>
> Important
>
> </div>
>
> This method is not supported when a `WebDataSource</api/web/webdatasource>` is used to display the data. The data must be edited directly through the `WebDataSource</api/web/webdatasource>`, followed by a call to `ReloadFromDataSource<weblistbox.reloadfromdatasource>`.
>
> </div>
>
> Adds a new row to the Listbox, not populate it with any values:
>
> ``` xojo
> ListBox1.AddRow("")
> ```
>
> Adds a new row to the Listbox, populating the first column:
>
> ``` xojo
> ListBox1.AddRow("Hello")
> ```
>
> Adds a new row and populates the three columns in a three-column Listbox:
>
> ``` xojo
> ListBox1.AddRow("Col1", "Col2", "Col3")
> ```

<div id="weblistbox.addrowat">

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

</div>

<div class="rst-class">

forsearch

</div>

WebListBox.AddRowAt

**AddRowAt**(index As `Integer</api/data_types/integer>`, `ParamArray</api/language/paramarray>` items() As `String</api/data_types/string>`)

> Creates a new row at the *index* passed, filling the columns with the *items* passed.
>
> <div class="important">
>
> <div class="title">
>
> Important
>
> </div>
>
> This method is not supported when a `WebDataSource</api/web/webdatasource>` is used to display the data. The data must be edited directly through the `WebDataSource</api/web/webdatasource>`, followed by a call to `ReloadFromDataSource<weblistbox.reloadfromdatasource>`.
>
> </div>
>
> This example inserts a row at index 4 into a <span class="title-ref">WebListBox</span> and populates columns 0 and 1:
>
> ``` xojo
> Listbox1.AddRowAt(4, "Trixie", "10")
> ```

<div id="weblistbox.allowpicturedrag">

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

</div>

<div class="rst-class">

forsearch

</div>

WebListBox.AllowPictureDrag

**AllowPictureDrag**(dragActionType As `WebDragItem.DragActionTypes<webdragitem.dragactiontypes>` = `WebDragItem.DragActionTypes.All<webdragitem.dragactiontypes>`)

> Allows the control to be dragged as a picture.

<div id="weblistbox.allowrawdatadrag">

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

</div>

<div class="rst-class">

forsearch

</div>

WebListBox.AllowRawDataDrag

**AllowRawDataDrag**(dragActionType As `WebDragItem.DragActionTypes<webdragitem.dragactiontypes>` = `WebDragItem.DragActionTypes.All<webdragitem.dragactiontypes>`)

> Allows the control to be dragged as raw data.

<div id="weblistbox.allowtextdrag">

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

</div>

<div class="rst-class">

forsearch

</div>

WebListBox.AllowTextDrag

**AllowTextDrag**(dragActionType As `WebDragItem.DragActionTypes<webdragitem.dragactiontypes>` = `WebDragItem.DragActionTypes.All<webdragitem.dragactiontypes>`)

> Allows the control to be dragged as text.

<div id="weblistbox.cellhintat">

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

</div>

<div class="rst-class">

forsearch

</div>

WebListBox.CellHintAt

**CellHintAt**(row As `Integer</api/data_types/integer>`, column As `Integer</api/data_types/integer>`) As `String</api/data_types/string>`

**CellHintAt**(row As `Integer</api/data_types/integer>`, column As `Integer</api/data_types/integer>`, `Assigns</api/language/assigns>` value `String</api/data_types/string>`)

> Gets or sets the hint text for TextField or TextArea cells at the specified *row* and *column* when used with `CellTypeAt<weblistbox.celltypeat>`.
>
> ``` xojo
> Const row = 10
> Const column = 3
>
> Me.CellTypeAt(row, column) = WebListBox.CellTypes.TextField
> Me.CellHintAt(row, column) = "Example Hint"
> ```

<div id="weblistbox.cellrendererat">

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

</div>

**CellRendererAt**(row As `Integer</api/data_types/integer>`, column As `Integer</api/data_types/integer>`) As `Variant</api/data_types/variant>`

> Allows you to get or set the `WebListBoxCellRenderer</api/web/weblistboxcellrenderer>` used to render a custom cell at the *row* and *column* passed.
>
> Passing an index that is outside the bounds of the rows and/or columns will result in an `OutOfBoundsException</api/exceptions/outofboundsexception>`.
>
> <div class="important">
>
> <div class="title">
>
> Important
>
> </div>
>
> This method is not supported when a `WebDataSource</api/web/webdatasource>` is used to display the data. The data must be edited directly through the `WebDataSource</api/web/webdatasource>`, followed by a call to `ReloadFromDataSource<weblistbox.reloadfromdatasource>`.
>
> </div>
>
> This example, called from the `Opening<webcontrol.opening>` event of a <span class="title-ref">WebListBox</span>, sets the cell value at row 0, column 2 to an instance of ButtonColumn which is a subclass of `WebListBoxCellRenderer</api/web/weblistboxcellrenderer>`:
>
> ``` xojo
> Me.CellRendererAt(0,2) = New ButtonColumn("Edit", "Delete")
> ```

<div id="weblistbox.celltagat">

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

</div>

<div class="rst-class">

forsearch

</div>

WebListBox.CellTagAt

**CellTagAt**(row As `Integer</api/data_types/integer>`, column As `Integer</api/data_types/integer>`) As `Variant</api/data_types/variant>`

**CellTagAt**(row As `Integer</api/data_types/integer>`, column As `Integer</api/data_types/integer>`, `Assigns</api/language/assigns>` value `Variant</api/data_types/variant>`)

> Allows you to get or set the `Variant</api/data_types/variant>` value associated with the cell at the *row* and *column* passed.
>
> Passing an index that is outside the bounds of the rows and/or columns will result in an `OutOfBoundsException</api/exceptions/outofboundsexception>`.
>
> <div class="important">
>
> <div class="title">
>
> Important
>
> </div>
>
> This method is not supported when a `WebDataSource</api/web/webdatasource>` is used to display the data. The data must be edited directly through the `WebDataSource</api/web/webdatasource>`, followed by a call to `ReloadFromDataSource<weblistbox.reloadfromdatasource>`.
>
> </div>

<div id="weblistbox.celltextat">

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

</div>

<div class="rst-class">

forsearch

</div>

WebListBox.CellTextAt

**CellTextAt**(row As `Integer</api/data_types/integer>`, column As `Integer</api/data_types/integer>`) As `String</api/data_types/string>`

**CellTextAt**(row As `Integer</api/data_types/integer>`, column As `Integer</api/data_types/integer>`, `Assigns</api/language/assigns>` value As `String</api/data_types/string>`)

> Allows you to get or set the value associated with the cell at the *row* and *column* passed. When getting the value on a cell that uses a `WebListBoxCellRenderer</api/web/weblistboxcellrenderer>` subclass, it will call its ToString method to get the value.
>
> If the cell has the focus (as a result of calling `EditCellAt<weblistbox.editcellat>` for example), calling <span class="title-ref">CellTextAt</span> will cause it to lose the focus.
>
> <div class="important">
>
> <div class="title">
>
> Important
>
> </div>
>
> This method is not supported when a `WebDataSource</api/web/webdatasource>` is used to display the data. The data must be edited directly through the `WebDataSource</api/web/webdatasource>`, followed by a call to `ReloadFromDataSource<weblistbox.reloadfromdatasource>`.
>
> </div>
>
> This example sets the cell value at row 0, column 0 to "Trixie":
>
> ``` xojo
> ListBox1.CellTextAt(0, 0) = "Trixie"
> ```

<div id="weblistbox.celltypeat">

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

</div>

<div class="rst-class">

forsearch

</div>

WebListBox.CellTypeAt

**CellTypeAt**(row As `Integer</api/data_types/integer>`, column As `Integer</api/data_types/integer>`) As `CellTypes<weblistbox.celltypes>`

**CellTypeAt**(row As `Integer</api/data_types/integer>`, column As `Integer</api/data_types/integer>`, `Assigns</api/language/assigns>` value `CellTypes<weblistbox.celltypes>`)

> Allows you to get or set the `CellType<weblistbox.celltypes>` associated with the cell at the *row* and *column* passed.
>
> Choosing Default as the `CellType<weblistbox.celltypes>` will set it to the `CellType<weblistbox.celltypes>` set via the `ColumnTypeAt<weblistbox.columntypeat>` method.
>
> <div class="important">
>
> <div class="title">
>
> Important
>
> </div>
>
> This method is not supported when a `WebDataSource</api/web/webdatasource>` is used to display the data. The data must be edited directly through the `WebDataSource</api/web/webdatasource>`, followed by a call to `ReloadFromDataSource<weblistbox.reloadfromdatasource>`.
>
> </div>
>
> This example sets the `CellType<weblistbox.celltypes>` at row 0, column 0 to CheckBox:
>
> ``` xojo
> ListBox1.CellTypeAt(0, 0) = WebListBox.CellTypes.CheckBox
> ```

<div class="tip">

<div class="title">

Tip

</div>

The type set via CellType at overrides the type set via `ColumnTypeAt<weblistbox.columntypeat>` method.

</div>

<div id="weblistbox.close">

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

</div>

<div class="rst-class">

forsearch

</div>

WebListBox.Close

**Close**

> Removes the control from the page.

<div id="weblistbox.columnalignmentat">

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

</div>

<div class="rst-class">

forsearch

</div>

WebListBox.ColumnAlignmentAt

**ColumnAlignmentAt**(index As `Integer</api/data_types/integer>`) As `WebListBox.Alignments<weblistbox.alignments>`

> Returns the alignment of the specified column *index*.

**ColumnAlignmentAt**(index As `Integer</api/data_types/integer>`, `Assigns</api/language/assigns>` value As `WebListBox.Alignments<weblistbox.alignments>`)

> Assigns the alignment to the specified column *index*.
>
> The example sets the column to right alignment:
>
> ``` xojo
> ListBox1.ColumnAlignmentAt(1) = WebListBox.Alignments.Right
> ```

<div id="weblistbox.columnsortdirectionat">

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

</div>

<div class="rst-class">

forsearch

</div>

WebListBox.ColumnSortDirectionAt

**ColumnSortDirectionAt**(index As `Integer</api/data_types/integer>`) As `SortDirections<weblistbox.sortdirections>`

**ColumnSortDirectionAt**(index As `Integer</api/data_types/integer>`, `Assigns</api/language/assigns>` value As `SortDirections<weblistbox.sortdirections>`)

> Allows you to get or set the direction by which the rows will be sorted for the column specified. ColumnSortDirectionAt actually sort the rows.
>
> This example sets the sort direction of column 0 to ascending:
>
> ``` xojo
> ListBox1.ColumnSortDirectionAt(0) = WebListBox.SortDirections.Ascending
> ```

<div id="weblistbox.columnsorttypeat">

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

</div>

<div class="rst-class">

forsearch

</div>

WebListBox.ColumnSortTypeAt

**ColumnSortTypeAt**(index As `Integer</api/data_types/integer>`) As `WebListBox.SortTypes<weblistbox.sorttypes>`

> Returns the sort direction of the specified column.

**ColumnSortTypeAt**(index As `Integer</api/data_types/integer>`, `Assigns</api/language/assigns>` value As `WebListBox.SortTypes<weblistbox.sorttypes>`)

> Assigns the sort direction to the specified column.
>
> This example makes the first column sortable.
>
> ``` xojo
> ListBox1.ColumnSortTypeAt(0) = WebListBox.SortTypes.Sortable
> ```

<div id="weblistbox.columntagat">

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

</div>

<div class="rst-class">

forsearch

</div>

WebListBox.ColumnTagAt

**ColumnTagAt**(index As `Integer</api/data_types/integer>`) As `Variant</api/data_types/variant>`

**ColumnTagAt**(index As `Integer</api/data_types/integer>`, `Assigns</api/language/assigns>` value As `Variant</api/data_types/variant>`)

> Allows you to get or set the `Variant</api/data_types/variant>` value associated with the column at the *index* passed.
>
> Passing an index that is outside the bounds of the columns will result in an `OutOfBoundsException</api/exceptions/outofboundsexception>`.
>
> This example sets the column tag at column 0, to the object Employee, an instance of a class:
>
> ``` xojo
> ListBox1.ColumnTagAt(0) = Employee
> ```

<div id="weblistbox.columntypeat">

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

</div>

<div class="rst-class">

forsearch

</div>

WebListBox.ColumnTypeAt

**ColumnTypeAt**(index As `Integer</api/data_types/integer>`) As `CellTypes<weblistbox.celltypes>`

**ColumnTypeAt**(index As `Integer</api/data_types/integer>`, `Assigns</api/language/assigns>` value `CellTypes<weblistbox.celltypes>`)

> Allows you to get or set the `CellType<weblistbox.celltypes>` associated with the column at the *index* passed.
>
> For <span class="title-ref">ColumnTypeAt</span>, the Default and Normal `CellTypes<weblistbox.celltypes>` are the same.
>
> This example sets the `CellType<weblistbox.celltypes>` for column 0 to CheckBox:
>
> ``` xojo
> ListBox1.ColumnTypeAt(0) = WebListBox.CellTypes.CheckBox
> ```

<div id="weblistbox.cssclasses">

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

</div>

<div class="rst-class">

forsearch

</div>

WebListBox.CSSClasses

**CSSClasses**

> Returns the instance of `WebCSSClasses</api/web/webcssclasses>` for this control allowing you to add CSS classes to and remove CSS classes from the control.

<div id="weblistbox.editcellat">

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

</div>

<div class="rst-class">

forsearch

</div>

WebListBox.EditCellAt

**EditCellAt**(row As `Integer</api/data_types/integer>`, column As `Integer</api/data_types/integer>`)

> Makes the cell at the *row* and *column* passed editable by the user.
>
> This example makes the cell value at row 0, column 0 editable:
>
> ``` xojo
> ListBox1.EditCellAt(0, 0)
> ```

<div id="weblistbox.executejavascript">

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

</div>

<div class="rst-class">

forsearch

</div>

WebListBox.ExecuteJavaScript

**ExecuteJavaScript**(script As `String</api/data_types/string>`)

> Executes the JavaScript passed. The JavaScript passed can call a JavaScript function in a WebPageSource control.
>
> The Xojo web framework uses EcmaScript 6 which is more strict than previous versions of JavaScript. For more details, see the [EcmaScript 6 documentation](https://www.ecma-international.org/ecma-262/6.0/).
>
> This code in the Pressed event of a Button displays an alert using JavaScript:
>
> ``` xojo
> Me.ExecuteJavaScript("alert('Hello!');")
> ```
>
> This code will select the text in a WebTextField (or WebTextArea):
>
> ``` xojo
> WebTextField1.ExecuteJavascript("document.getElementById('" + _
>   WebTextField1.ControlID + "_inner').select();")
> ```

<div id="weblistbox.frozencolumns">

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

</div>

<div class="rst-class">

forsearch

</div>

WebListBox.FrozenColumns

**FrozenColumns** As `WebListBoxFrozenColumns</api/web/weblistboxfrozencolumns>`

> Returns a `WebListBoxFrozenColumns</api/web/weblistboxfrozencolumns>` instance allowing to indicate the amount of columns that should be locked to the left and/or right of the table.
>
> This example freezes the first 2 columns on the left side and the first column on the right side:
>
> ``` xojo
> Me.FrozenColumns.Left = 2
> Me.FrozenColumns.Right = 1
> ```

<div id="weblistbox.gotourl">

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

</div>

<div class="rst-class">

forsearch

</div>

WebListBox.GotoURL

**GotoURL**(url As `String</api/data_types/string>`, inNewWindow As `Boolean</api/data_types/boolean>` = `False</api/language/false>`)

> Opens the passed *url* in place of the current web page or downloads a file. If *inNewWindow* is `True</api/language/true>`, the browser is asked to open the *url* in a new window.
>
> If the browser has popup windows disabled and *inNewWindow* is `True</api/language/true>`, the method silently fails and the page is not shown.
>
> If *inNewWindow* is `False</api/language/false>`, the running web app is replaced with the specified *url*. If you want to display an external web site within your web app, use the `WebHTMLViewer</api/user_interface/web/webhtmlviewer>` control.
>
> Display a web site in a new popup window:
>
> ``` xojo
> Me.GotoURL("http://www.wikipedia.org", True)
> ```

<div id="weblistbox.headerat">

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

</div>

<div class="rst-class">

forsearch

</div>

WebListBox.HeaderAt

**HeaderAt**(index As `Integer</api/data_types/integer>`) As `String</api/data_types/string>`

> Returns the heading of the specified column.

**HeaderAt**(index As `Integer</api/data_types/integer>`, `Assigns</api/language/assigns>` value As `String</api/data_types/string>`)

> Assigns the heading to the specified column.
>
> If you assign values to both HeaderAt and InitialValue, the first row of InitialValue is interpreted as the first row of data; otherwise, it is used as the header and the second row of InitialValue is used as the first row of data.

<div id="weblistbox.reloadfromdatasource">

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

</div>

<div class="rst-class">

forsearch

</div>

WebListBox.ReloadFromDataSource

**ReloadFromDataSource**

> Reloads the data into the <span class="title-ref">WebListBox</span>.
>
> This is useful with the data in the <span class="title-ref">WebListBox</span> comes from a `WebDataSource</api/web/webdatasource>` and that data has changed since it was last loaded into the <span class="title-ref">WebListBox</span>.

<div id="weblistbox.removeallrows">

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

</div>

<div class="rst-class">

forsearch

</div>

WebListBox.RemoveAllRows

**RemoveAllRows**

> Removes all rows from the <span class="title-ref">WebListBox</span>.
>
> <div class="important">
>
> <div class="title">
>
> Important
>
> </div>
>
> This method is not supported when a `WebDataSource</api/web/webdatasource>` is used to display the data. The data must be edited directly through the `WebDataSource</api/web/webdatasource>`, followed by a call to `ReloadFromDataSource<weblistbox.reloadfromdatasource>`.
>
> </div>

<div id="weblistbox.removerowat">

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

</div>

<div class="rst-class">

forsearch

</div>

WebListBox.RemoveRowAt

**RemoveRowAt**(index As `Integer</api/data_types/integer>`)

> Removes the row at the *Row* passed.
>
> <div class="important">
>
> <div class="title">
>
> Important
>
> </div>
>
> This method is not supported when a `WebDataSource</api/web/webdatasource>` is used to display the data. The data must be edited directly through the `WebDataSource</api/web/webdatasource>`, followed by a call to `ReloadFromDataSource<weblistbox.reloadfromdatasource>`.
>
> </div>

<div id="weblistbox.rowtagat">

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

</div>

<div class="rst-class">

forsearch

</div>

WebListBox.RowTagAt

**RowTagAt**(row As `Integer</api/data_types/integer>`) As `Variant</api/data_types/variant>`

**RowTagAt**(row As `Integer</api/data_types/integer>`, `Assigns</api/language/assigns>` value `Variant</api/data_types/variant>`)

> Allows you to get or set the `Variant</api/data_types/variant>` value associated with the row at the *row* passed.
>
> Passing an row that is outside the bounds of the rows and/or columns will result in an `OutOfBoundsException</api/exceptions/outofboundsexception>`.
>
> This example sets the row tag at row 0, to the object Employee, an instance of a class:
>
> ``` xojo
> ListBox1.RowTagAt(0) = Employee
> ```

<div id="weblistbox.scrollto">

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

</div>

<div class="rst-class">

forsearch

</div>

WebListBox.ScrollTo

**ScrollTo**(rowIndex As `Integer</api/data_types/integer>`)

> Scrolls the ListBox to the specified *rowIndex* position.
>
> <div class="warning">
>
> <div class="title">
>
> Warning
>
> </div>
>
> If *rowIndex* is greater than the last row in the ListBox (WebListBox.LastRowIndex), an `OutOfBoundsException</api/exceptions/outofboundsexception>` will occur.
>
> </div>
>
> This example scrolls to the last row of the ListBox:
>
> ``` xojo
> ListBox1.ScrollTo(ListBox1.LastRowIndex)
> ```

<div id="weblistbox.selected">

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

</div>

<div class="rst-class">

forsearch

</div>

WebListBox.Selected

**Selected**(row As `Integer</api/data_types/integer>`) As `Boolean</api/data_types/boolean>`

> Used to get the selected state of a row.
>
> The following checks whether the first row is selected.
>
> ``` xojo
> If ListBox1.Selected(0) Then
>   MessageBox("Selected")
> Else
>   MessageBox("Not Selected")
> End If
> ```

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

<div class="rst-class">

forsearch

</div>

WebListBox.Selected

**Selected**(row As `Integer</api/data_types/integer>`, `Assigns</api/language/assigns>` selected As `Boolean</api/data_types/boolean>`)

> Used to set the selected state of a row.
>
> The following checks whether the first row is selected. If not, the first row will be selected.
>
> ``` xojo
> If ListBox1.Selected(0) Then
>   MessageBox("Selected")
> Else
>   MessageBox("Not Selected")
>   Listbox1.Selected(0) = True
> End If
> ```

<div id="weblistbox.selectedrowcount">

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

</div>

<div class="rst-class">

forsearch

</div>

WebListBox.SelectedRowCount

**SelectedRowCount** As `Integer</api/data_types/integer>`

> The number of rows selected (highlighted) in the <span class="title-ref">WebListBox</span>.

<div id="weblistbox.selectedrowtext">

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

</div>

<div class="rst-class">

forsearch

</div>

WebListBox.SelectedRowText

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

> Allows you to get value of the selected row.
>
> Only the value in column 0 is returned.

<div id="weblistbox.setfocus">

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

</div>

<div class="rst-class">

forsearch

</div>

WebListBox.SetFocus

**SetFocus**

> Sets the focus to the `Control</api/user_interface/web/webuicontrol>`.
>
> This code checks for a required value when a button is pressed:
>
> ``` xojo
> If UserNameField.Text.IsEmpty Then
>   MessageBox("Please enter your UserName.")
>   UserNameField.SetFocus
>   Return
> End If
> ```

<div id="weblistbox.style">

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

</div>

<div class="rst-class">

forsearch

</div>

WebListBox.Style

**Style** As `WebStyle</api/user_interface/web/webstyle>`

> Returns the `WebStyle</api/user_interface/web/webstyle>` for the control.

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

**Style**(`Assigns</api/language/assigns>` style As `WebStyle</api/user_interface/web/webstyle>`)

> Assigns the *style* to the control.
>
> In this example, in any event of the control, set the text to bold:
>
> ``` xojo
> Var style As New WebStyle
> style.Bold = True
> Me.Style = style
> ```

<div id="weblistbox.updatebrowser">

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

</div>

<div class="rst-class">

forsearch

</div>

WebListBox.UpdateBrowser

**UpdateBrowser**

> Forces the current values of the control to be sent to the browser.
>
> This method is useful when you are computing values in a loop and wish to update the browser immediately rather than wait until the current method ends.
>
> This code iterates through a `RowSet</api/databases/rowset>` of `database rows</api/databases/databaserow>`, updates a `ProgressBar</api/user_interface/web/webprogressbar>` and then forces the updated `ProgressBar</api/user_interface/web/webprogressbar>` to be sent to the browser via UpdateBrowser.
>
> ``` xojo
> ProgressBar1.MaximumValue = SalesData.RowCount
> For Each row As DatabaseRow in SalesData
>   AnalyzeSales(row)
>   ProgressBar1.Value = ProgressBar1.Value + 1
>   ProgressBar1.UpdateBrowser
> Next
> ```

## Event descriptions

<div id="weblistbox.cellaction">

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

</div>

<div class="rst-class">

forsearch

</div>

WebListBox.CellAction

**CellAction**(row As `Integer</api/data_types/integer>`, column As `Integer</api/data_types/integer>`, value As `Variant</api/data_types/variant>`)

> The user interacted with the contents of the cell by typing in it (if its editable) or clicking if its `CellType<weblistbox.celltypes>` is CheckBox for example. For typing, it will fire when the user presses `Enter/Return` or when the control in which they are typing loses the focus.

<div id="weblistbox.cellfocuslost">

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

</div>

<div class="rst-class">

forsearch

</div>

WebListBox.CellFocusLost

**CellFocusLost**(row As `Integer</api/data_types/integer>`, column As `Integer</api/data_types/integer>`)

> The *row*, *column* cell has just lost the focus.
>
> The user could have clicked on another cell or pressed Tab, Return, or Escape.

<div id="weblistbox.cellfocusreceived">

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

</div>

<div class="rst-class">

forsearch

</div>

WebListBox.CellFocusReceived

**CellFocusReceived**(row As `Integer</api/data_types/integer>`, column As `Integer</api/data_types/integer>`)

> The user has selected an editable cell of a ListBox.
>
> The *row* and *column* parameters indicate which cell just got the focus.

<div id="weblistbox.closed">

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

</div>

<div class="rst-class">

forsearch

</div>

WebListBox.Closed

**Closed**

> The control has been removed from the browser either because the page has closed or the control's Close method was called.

<div id="weblistbox.contextualmenuselected">

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

</div>

<div class="rst-class">

forsearch

</div>

WebListBox.ContextualMenuSelected

**ContextualMenuSelected**(hitItem As `WebMenuItem</api/user_interface/web/webmenuitem>`)

> Called when a contextual menu item is selected. This selected item is contained in *hitItem*.
>
> This code populates a contextual menu in the Opening event of a `WebToolbar</api/user_interface/web/webtoolbar>`:
>
> ``` xojo
> Var menu As New WebMenuItem
>
> menu.AddMenuItem("One")
> menu.AddMenuItem("Two")
> menu.AddMenuItem("Three")
> Me.ContextualMenu = menu
> ```
>
> The menu selection is then handled by the ContextualMenuSelected event when the user right-clicks on the control. For example, it can be of the form:
>
> ``` xojo
> Select Case hitItem.Text
> Case "One"
>   MessageBox("One")
> Case "Two"
>   MessageBox("Two")
> Case "Three"
>   MessageBox("Three")
> End Select
> ```

<div id="weblistbox.customcellaction">

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

</div>

<div class="rst-class">

forsearch

</div>

WebListBox.CustomCellAction

**CustomCellAction**(row As `Integer</api/data_types/integer>`, column As `Integer</api/data_types/integer>`, identifier As `String</api/data_types/string>`, value As `Variant</api/data_types/variant>`)

> The user has taken some action in a cell with a `WebListBoxCellRenderer</api/web/weblistboxcellrenderer>` assigned to it that triggers this event.
>
> The *identifier* parameter is an arbitrary value assigned by the subclass of `WebListBoxCellRenderer</api/web/weblistboxcellrenderer>` that is assigned to the cell. The purpose of the *identifier* is to allow the developer to know what action the user took so that the code in this event can respond to it. For example, if the `WebListBoxCellRenderer</api/web/weblistboxcellrenderer>` added two buttons, the *identifier* could be set to the caption of the button that was pressed.

<div id="weblistbox.doublepressed">

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

</div>

<div class="rst-class">

forsearch

</div>

WebListBox.DoublePressed

**DoublePressed**(row As `Integer</api/data_types/integer>`, column As `Integer</api/data_types/integer>`)

> The user has double-clicked or double-tapped on a row.

<div id="weblistbox.dropobject">

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

</div>

<div class="rst-class">

forsearch

</div>

WebListBox.DropObject

**DropObject**(obj As `WebDragItem</api/user_interface/web/webdragitem>`, action As `WebDragItem.DragActionTypes<webdragitem.dragactiontypes>`, x As `Integer</api/data_types/integer>`, y As `Integer</api/data_types/integer>`)

> Called when a dragged item is over a control that can accept it. The dragged item is contained in *obj* and the type of drag is identified by *action*.

<div id="weblistbox.error">

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

</div>

<div class="rst-class">

forsearch

</div>

WebListBox.Error

**Error**(error As `RuntimeException</api/exceptions/runtimeexception>`)

> An exception has occurred.

<div id="weblistbox.hidden">

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

</div>

<div class="rst-class">

forsearch

</div>

WebListBox.Hidden

**Hidden**

> The control is about to become no longer visible. This could be because the page is being closed, is being replaced as the foreground page by another page or because the control or a parent control's Visible property has been set to `False</api/language/false>`.
>
> <div class="note">
>
> <div class="title">
>
> Note
>
> </div>
>
> This event is equivalent to the `DesktopWindow.Deactivated<desktopwindow.deactivated>` event in a desktop app.
>
> </div>

<div id="weblistbox.opening">

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

</div>

<div class="rst-class">

forsearch

</div>

WebListBox.Opening

**Opening**

> The control has been created and the page is opening but has not been sent to the browser yet.
>
> The Opening event handler can be used to initialize non-visual properties and settings for controls.
>
> In most cases, you should use the `Shown<webuicontrol.shown>` event to initialize controls.

<div id="weblistbox.pressed">

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

</div>

<div class="rst-class">

forsearch

</div>

WebListBox.Pressed

**Pressed**(row As `Integer</api/data_types/integer>`, column As `Integer</api/data_types/integer>`)

> The user pressed (clicked or tapped) on the cell indicated by the parameters.

<div id="weblistbox.rowsreordered">

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

</div>

<div class="rst-class">

forsearch

</div>

WebListBox.RowsReordered

**RowsReordered**(newPosition As `Integer</api/data_types/integer>`, oldPosition As `Integer</api/data_types/integer>`)

> This event is called when a row is selected then moved to a new position. The `AllowRowReordering<weblistbox.allowrowreordering>` property must be `True</api/language/true>` in order for this event to be called.

<div id="weblistbox.selectionchanged">

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

</div>

<div class="rst-class">

forsearch

</div>

WebListBox.SelectionChanged

**SelectionChanged**(rows() As `Integer</api/data_types/integer>`)

> The selection of rows has changed.
>
> SelectionChanged is called in the following situations:
>
> - When the <span class="title-ref">WebListBox</span> is clicked to give it the focus
> - When a cell is clicked even if it already is selected
> - When a row is clicked to change the selection
> - When the selected row is removed
>
> Clicking on a header does not call the SelectionChanged event.
>
> Display data from the selected row in a TextField so it can be edited:
>
> ``` xojo
> If Me.SelectedRowIndex >= 0 Then
>   Var lastName As String
>   lastName = Me.SelectedRowText ' Gets the first column
>
>   LastNameField.Text = lastName
> End If
> ```

<div id="weblistbox.shown">

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

</div>

<div class="rst-class">

forsearch

</div>

WebListBox.Shown

**Shown**

> The control has appeared on the currently displayed page. This could be because its parent page just finished loading, its parent page has come to the foreground or the control is now visible having been previously invisible because it or its parent control's Visible property has been set to `True</api/language/true>`.
>
> Use the Shown event for initializing your controls or doing anything that would interact with other controls or user interface elements on the web page instead of the `Opening<webcontrol.opening>` event.
>
> <div class="note">
>
> <div class="title">
>
> Note
>
> </div>
>
> This event is the web equivalent to the `DesktopWindow.Activated<desktopwindow.activated>` event.
>
> </div>
>
> This code in the Shown event of a <span class="title-ref">WebListBox</span> adds 2 rows with 3 columns:
>
> ``` xojo
> Me.RemoveAllRows
> Me.AddRow("Row 1", "Bob", "Roberts")
> Me.AddRow("Row 2", "Barb", "Reynolds")
> ```
>
> This example sets the text of a label:
>
> ``` xojo
> If Session.LoggedIn Then
>   Me.Text = "Welcome!"
> Else
>   Me.Text = "Welcome, " + Session.UserName
> End If
> ```

## Notes

To load rows dynamically, see the `WebDataSource</api/web/webdatasource>` class.

To control the drawing style of individual cells, use `WebListBoxStyleRenderer</api/web/weblistboxstylerenderer>`.

To draw pictures in a cell, use `WebListBoxImageRenderer</api/web/weblistboximagerenderer>`.

To display `DateTime</api/data_types/datetime>` values in the user's time zone and locale, use `WebListBoxDateTimeRenderer</api/web/weblistboxdatetimerenderer>`.

## Sample code

This example adds 100 rows to a 5-column listbox:

``` xojo
For row As Integer = 1 To 100
  Listbox1.AddRow("Col1", "Col2", "Col3", "Col4", "Col5")
Next
```

## Compatibility

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

<div class="seealso">

`WebUIControl</api/user_interface/web/webuicontrol>` parent class; `WebDataSource</api/web/webdatasource>` class.

</div>
