# DataRepeater

The DataRepeater control functions as a scrollable container for controls that display repeated data, for example, rows in a database table. It can be used as an alternative to the DataGridView control when you need more control over the layout of the data.

You can use a DataRepeater control to display data with or without an underlying data source.

Without specifying a data source, you can create rows that contain data and add them to the DataRepeater.

When working with large amounts of data, you can set the **VirtualMode** property to `True` to display a subset of the available data. Virtual mode requires the implementation of a data cache from which the DataRepeater control is populated.

![Wisej.NET DataRepeater Control](https://553579532-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MF1D11gPs_az3xaKusw%2Fuploads%2FD4yzGfEOQxte60BVaWqY%2Fimage.png?alt=media\&token=ef64bfc9-a8e3-4de2-a617-33e2522b100e)

{% hint style="info" %}
For a full list of properties, methods and events see the [API documentation](https://docs.wisej.com/api/wisej.web/containers/datarepeater).
{% endhint %}

## Features

### Unlimited Scrolling

When the DataRepeater has **VirtualMode** property set to **true**, it can handle any number of records. The entries are only retrieved from the server when they become visible on the client (unless the **PrefetchItems** count is set).

![DataRepeater Scrolling through 1,000,000 Records](https://553579532-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MF1D11gPs_az3xaKusw%2Fuploads%2F74aUAGTIH4OtWWDs9DJv%2FDataRepeater%20Unlimited%20Scrolling.gif?alt=media\&token=e4b32dae-a17b-490e-8c0d-2795529aa0cb)

## Advanced

### JavaScript Widget

| Item        | Description                                                                                                         |
| ----------- | ------------------------------------------------------------------------------------------------------------------- |
| Class name  | wisej.web.DataRepeater                                                                                              |
| Source code | [https://github.com/iceteagroup/wisej-js](https://github.com/iceteagroup/wisej-js/blob/master/wisej.web.TextBox.js) |
