Interface

# WebDataSource

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

## Description

Provides the methods needed to create a data source to use with `WebListBox</api/user_interface/web/weblistbox>`.

## Methods

<div class="rst-class">

table-centered_column_4

</div>

| Name                                   | Parameters                                                                                                                                       | Returns                                                 | Shared |
|----------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------|--------|
| `ColumnData<webdatasource.columndata>` |                                                                                                                                                  | `WebListBoxColumnData()</api/web/weblistboxcolumndata>` |        |
| `RowCount<webdatasource.rowcount>`     |                                                                                                                                                  | `Integer</api/data_types/integer>`                      |        |
| `RowData<webdatasource.rowdata>`       | rowCount As `Integer</api/data_types/integer>`, rowOffset As `Integer</api/data_types/integer>`, sortColumns As `String</api/data_types/string>` | `WebListBoxRowData()</api/web/weblistboxrowdata>`       |        |

## Method descriptions

<div id="webdatasource.columndata">

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

</div>

<div class="rst-class">

forsearch

</div>

WebDataSource.ColumnData

**ColumnData** As `WebListBoxColumnData()</api/web/weblistboxcolumndata>`

> Returns an array of objects that describe the columns requested.

<div id="webdatasource.rowcount">

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

</div>

<div class="rst-class">

forsearch

</div>

WebDataSource.RowCount

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

> Returns the number of rows in the current dataset.

<div id="webdatasource.rowdata">

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

</div>

<div class="rst-class">

forsearch

</div>

WebDataSource.RowData

**RowData**(rowCount As `Integer</api/data_types/integer>`, rowOffset As `Integer</api/data_types/integer>`, sortColumns As `String</api/data_types/string>`) As `WebListBoxRowData()</api/web/weblistboxrowdata>`

> Returns an array of objects that describe the requested rows.

## Notes

The data source you create via the <span class="title-ref">WebDataSource</span> interface lets you create a generic way to populate the data for a `WebListBox</api/user_interface/web/weblistbox>`.

## Compatibility

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

<div class="seealso">

`WebListBox</api/user_interface/web/weblistbox>` control, `WebListBoxColumnData</api/web/weblistboxcolumndata>`, `WebListBoxRowData</api/web/weblistboxrowdata>` classes.

</div>
