# DataRepeater

Namespace: **Wisej.Web**

Assembly: **Wisej.Framework** (4.0.0.0)

* [Control](/api/wisej.web/general/control.md)
  * [ScrollableControl](/api/wisej.web/containers/scrollablecontrol.md)
    * [ContainerControl](/api/wisej.web/containers/containercontrol.md)
      * [DataRepeater](/api/wisej.web/containers/datarepeater.md)

Displays data in a customizable list format.

{% tabs %}
{% tab title="C#" %}

```csharp
public class DataRepeater : ContainerControl, ISupportInitialize
```

{% endtab %}

{% tab title="VB.NET" %}

```visual-basic
Public Class DataRepeater
    Inherits ContainerControl
    Implements ISupportInitialize
```

{% endtab %}
{% endtabs %}

## Constructors

### ![](/files/hsR4ok3152WyAf8J2C1u) DataRepeater()

Initializes a new instance of the [DataRepeater](/api/wisej.web/containers/datarepeater.md) class.

## Properties

### ![](/files/hsR4ok3152WyAf8J2C1u) AllowUserToAddItems

[Boolean](https://docs.microsoft.com/dotnet/api/system.boolean): Returns or sets whether users can add a new row to the [DataRepeater](/api/wisej.web/containers/datarepeater.md) at run time. (Default: `True`)

### ![](/files/hsR4ok3152WyAf8J2C1u) AllowUserToDeleteItems

[Boolean](https://docs.microsoft.com/dotnet/api/system.boolean): Returns or sets whether users can delete a row from the [DataRepeater](/api/wisej.web/containers/datarepeater.md) at run time. (Default: `True`)

### ![](/files/hsR4ok3152WyAf8J2C1u) BorderStyle

[BorderStyle](/api/wisej.web/enumerations/wisej.web.borderstyle.md): Returns or sets the border style for the [DataRepeater](/api/wisej.web/containers/datarepeater.md) control. (Default: `Solid`)

### ![](/files/hsR4ok3152WyAf8J2C1u) ClientArea

[Rectangle](https://docs.microsoft.com/dotnet/api/system.drawing.rectangle): Returns the client rectangle to use in the designer.

### ![](/files/hsR4ok3152WyAf8J2C1u) CurrentItem

[DataRepeaterItem](/api/wisej.web/containers/datarepeater/wisej.web.datarepeateritem.md): Returns the current [DataRepeaterItem](/api/wisej.web/containers/datarepeater/wisej.web.datarepeateritem.md) in the [DataRepeater](/api/wisej.web/containers/datarepeater.md) control. (Default: `null`)

### ![](/files/hsR4ok3152WyAf8J2C1u) CurrentItemIndex

[Int32](https://docs.microsoft.com/dotnet/api/system.int32): Returns or sets the index of the current [DataRepeaterItem](/api/wisej.web/containers/datarepeater/wisej.web.datarepeateritem.md) in a [DataRepeater](/api/wisej.web/containers/datarepeater.md) control. (Default: `-1`)

### ![](/files/hsR4ok3152WyAf8J2C1u) DataMember

[String](https://docs.microsoft.com/dotnet/api/system.string): Return or sets the name of the list or table in the data source for which the [DataRepeater](/api/wisej.web/containers/datarepeater.md) is displaying data. (Default: `""`)

### ![](/files/hsR4ok3152WyAf8J2C1u) DataSource

[Object](https://docs.microsoft.com/dotnet/api/system.object): Returns or sets the data source for which the [DataRepeater](/api/wisej.web/containers/datarepeater.md) is displaying data. (Default: `null`)

### ![](/files/hsR4ok3152WyAf8J2C1u) DisplayedItems

[DataRepeaterItem\[\]](/api/wisej.web/containers/datarepeater/wisej.web.datarepeateritem.md): Returns the list of [DataRepeaterItem](/api/wisej.web/containers/datarepeater/wisej.web.datarepeateritem.md) items currently displayed on the client.

### ![](/files/hsR4ok3152WyAf8J2C1u) FirstDisplayedItemIndex

[Int32](https://docs.microsoft.com/dotnet/api/system.int32): Return the index of the first currently displayed [DataRepeaterItem](/api/wisej.web/containers/datarepeater/wisej.web.datarepeateritem.md) in a [DataRepeater](/api/wisej.web/containers/datarepeater.md) control. (Default: `0`)

### ![](/files/hsR4ok3152WyAf8J2C1u) IsCurrentItemModified

[Boolean](https://docs.microsoft.com/dotnet/api/system.boolean): Return whether the data for a [DataRepeaterItem](/api/wisej.web/containers/datarepeater/wisej.web.datarepeateritem.md) in the [DataRepeater](/api/wisej.web/containers/datarepeater.md) control has been changed by a user. (Default: `False`)

### ![](/files/hsR4ok3152WyAf8J2C1u) ItemBorderStyle

[BorderStyle](/api/wisej.web/enumerations/wisej.web.borderstyle.md): Returns or sets the border style for the items in a [DataRepeater](/api/wisej.web/containers/datarepeater.md) control.

Default value is BorderStyle.Solid

### ![](/files/hsR4ok3152WyAf8J2C1u) ItemCount

[Int32](https://docs.microsoft.com/dotnet/api/system.int32): Returns or sets the number of [DataRepeaterItem](/api/wisej.web/containers/datarepeater/wisej.web.datarepeateritem.md) items that are in the [DataRepeater](/api/wisej.web/containers/datarepeater.md) control. (Default: `0`)

### ![](/files/hsR4ok3152WyAf8J2C1u) ItemHeaderSize

[Int32](https://docs.microsoft.com/dotnet/api/system.int32): Return sets the size of the item header in a [DataRepeater](/api/wisej.web/containers/datarepeater.md) control.

### ![](/files/hsR4ok3152WyAf8J2C1u) ItemHeaderVisible

[Boolean](https://docs.microsoft.com/dotnet/api/system.boolean): Returns or sets whether item headers are displayed in a [DataRepeater](/api/wisej.web/containers/datarepeater.md) control.

The default value is true.

### ![](/files/hsR4ok3152WyAf8J2C1u) ItemSelectedBackColor

[Color](https://docs.microsoft.com/dotnet/api/system.drawing.color): Returns or sets the background color for the [DataRepeaterItem](/api/wisej.web/containers/datarepeater/wisej.web.datarepeateritem.md) panel when it's the [CurrentItem](#currentitem).

### ![](/files/hsR4ok3152WyAf8J2C1u) ItemSize

[Size](https://docs.microsoft.com/dotnet/api/system.drawing.size): Returns or sets the size of the [DataRepeaterItem](/api/wisej.web/containers/datarepeater/wisej.web.datarepeateritem.md) child panels.

### ![](/files/hsR4ok3152WyAf8J2C1u) ItemTemplate

[DataRepeaterItem](/api/wisej.web/containers/datarepeater/wisej.web.datarepeateritem.md): Returns the template that represents the [DataRepeaterItem](/api/wisej.web/containers/datarepeater/wisej.web.datarepeateritem.md) for the [DataRepeater](/api/wisej.web/containers/datarepeater.md) control.

The default value is a Wisej.Web.DataRepeaterItem with BorderStyle: None

### ![](/files/hsR4ok3152WyAf8J2C1u) LayoutStyle

[DataRepeaterLayoutStyles](/api/wisej.web/containers/datarepeater/wisej.web.datarepeaterlayoutstyles.md): Return or sets whether the [DataRepeater](/api/wisej.web/containers/datarepeater.md) control will be displayed with a vertical or horizontal orientation. (Default: `Vertical`)

### ![](/files/hsR4ok3152WyAf8J2C1u) PrefetchItems

[Int32](https://docs.microsoft.com/dotnet/api/system.int32): Returns or sets the number of items to prefetch outside of the visible area. The default is 0 (disabled). (Default: `0`)

### ![](/files/hsR4ok3152WyAf8J2C1u) RightToLeftLayout

[Boolean](https://docs.microsoft.com/dotnet/api/system.boolean): Enables or disables right-to-left layout when the value of [RightToLeft](/api/wisej.web/general/control.md#righttoleft) is [Yes](/api/wisej.web/enumerations/wisej.web.righttoleft.md#fields) (Default: `False`)

### ![](/files/hsR4ok3152WyAf8J2C1u) ScrollBarVisible

[Boolean](https://docs.microsoft.com/dotnet/api/system.boolean): Returns or sets whether the scrollbar is visible. When the scrollbar is hidden, the user can still scroll using touch events, the keyboard, or the wheel. (Default: `True`)

### ![](/files/hsR4ok3152WyAf8J2C1u) VirtualMode

[Boolean](https://docs.microsoft.com/dotnet/api/system.boolean): Returns or sets a value that indicates whether you have provided your own data-management operations for the [DataRepeater](/api/wisej.web/containers/datarepeater.md) control. (Default: `False`)

## Methods

### ![](/files/hsR4ok3152WyAf8J2C1u) AddNew()

Adds a new [DataRepeaterItem](/api/wisej.web/containers/datarepeater/wisej.web.datarepeateritem.md) to the [DataRepeater](/api/wisej.web/containers/datarepeater.md) control.

### ![](/files/hsR4ok3152WyAf8J2C1u) CancelEdit()

Allows users to cancel an edit to the current child control in the current [DataRepeaterItem](/api/wisej.web/containers/datarepeater/wisej.web.datarepeateritem.md).

### ![](/files/hsR4ok3152WyAf8J2C1u) FocusActiveControl()

Selects the active control. If the active control is not focusable, it selects the next focusable control.

### ![](/files/lzopMboA31bVq8UIcbT3) OnAllowUserToAddItemsChanged(e)

Fires the [AllowUserToAddItemsChanged](#allowusertoadditemschanged) event.

| Parameter | Type                                                                | Description                                                                                         |
| --------- | ------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- |
| **e**     | [EventArgs](https://docs.microsoft.com/dotnet/api/system.eventargs) | A [EventArgs](https://docs.microsoft.com/dotnet/api/system.eventargs) that contains the event data. |

### ![](/files/lzopMboA31bVq8UIcbT3) OnAllowUserToDeleteItemsChanged(e)

Fires the [AllowUserToDeleteItemsChanged](#allowusertodeleteitemschanged) event.

| Parameter | Type                                                                | Description                                                                                         |
| --------- | ------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- |
| **e**     | [EventArgs](https://docs.microsoft.com/dotnet/api/system.eventargs) | A [EventArgs](https://docs.microsoft.com/dotnet/api/system.eventargs) that contains the event data. |

### ![](/files/lzopMboA31bVq8UIcbT3) OnBindingContextChanged(e)

Fires the [BindingContextChanged](/api/wisej.web/general/control.md#bindingcontextchanged) event.

| Parameter | Type                                                                | Description                                                                                         |
| --------- | ------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- |
| **e**     | [EventArgs](https://docs.microsoft.com/dotnet/api/system.eventargs) | A [EventArgs](https://docs.microsoft.com/dotnet/api/system.eventargs) that contains the event data. |

### ![](/files/lzopMboA31bVq8UIcbT3) OnCreateControl()

### ![](/files/lzopMboA31bVq8UIcbT3) OnCurrentItemIndexChanged(e)

Fires the [CurrentItemIndexChanged](#currentitemindexchanged) event.

| Parameter | Type                                                                | Description                                                                                                 |
| --------- | ------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- |
| **e**     | [EventArgs](https://docs.microsoft.com/dotnet/api/system.eventargs) | An [EventArgs](https://docs.microsoft.com/dotnet/api/system.eventargs) object that contains the event data. |

### ![](/files/lzopMboA31bVq8UIcbT3) OnDataError(e)

Fires the [DataError](#dataerror) event.

| Parameter | Type                                                                                                                 | Description                                                                                                                                                       |
| --------- | -------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **e**     | [DataRepeaterDataErrorEventArgs](/api/wisej.web/containers/datarepeater/wisej.web.datarepeaterdataerroreventargs.md) | An instance of [DataRepeaterDataErrorEventArgs](/api/wisej.web/containers/datarepeater/wisej.web.datarepeaterdataerroreventargs.md) that contains the event data. |

### ![](/files/lzopMboA31bVq8UIcbT3) OnDataMemberChanged(e)

Fires the [DataMemberChanged](#datamemberchanged) event.

| Parameter | Type                                                                | Description                                                                                         |
| --------- | ------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- |
| **e**     | [EventArgs](https://docs.microsoft.com/dotnet/api/system.eventargs) | A [EventArgs](https://docs.microsoft.com/dotnet/api/system.eventargs) that contains the event data. |

### ![](/files/lzopMboA31bVq8UIcbT3) OnDataSourceChanged(e)

Fires the [DataSourceChanged](#datasourcechanged) event.

| Parameter | Type                                                                | Description                                                                                         |
| --------- | ------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- |
| **e**     | [EventArgs](https://docs.microsoft.com/dotnet/api/system.eventargs) | A [EventArgs](https://docs.microsoft.com/dotnet/api/system.eventargs) that contains the event data. |

### ![](/files/lzopMboA31bVq8UIcbT3) OnItemCloned(e)

Fires the [ItemCloned](#itemcloned) event.

| Parameter | Type                                                                                                       | Description                                                                                                                                        |
| --------- | ---------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- |
| **e**     | [DataRepeaterItemEventArgs](/api/wisej.web/containers/datarepeater/wisej.web.datarepeateritemeventargs.md) | An [DataRepeaterItemEventArgs](/api/wisej.web/containers/datarepeater/wisej.web.datarepeateritemeventargs.md) object that contains the event data. |

### ![](/files/lzopMboA31bVq8UIcbT3) OnItemCloning(e)

Fires the [ItemCloning](#itemcloning) event.

| Parameter | Type                                                                                                                 | Description                                                                                                                                                  |
| --------- | -------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **e**     | [DataRepeaterItemCloneEventArgs](/api/wisej.web/containers/datarepeater/wisej.web.datarepeateritemcloneeventargs.md) | An [DataRepeaterItemCloneEventArgs](/api/wisej.web/containers/datarepeater/wisej.web.datarepeateritemcloneeventargs.md) object that contains the event data. |

### ![](/files/lzopMboA31bVq8UIcbT3) OnItemsAdded(e)

Fires the [ItemsAdded](#itemsadded) event.

| Parameter | Type                                                                                                                           | Description                                                                                                                                                            |
| --------- | ------------------------------------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **e**     | [DataRepeaterAddRemoveItemsEventArgs](/api/wisej.web/containers/datarepeater/wisej.web.datarepeateraddremoveitemseventargs.md) | An [DataRepeaterAddRemoveItemsEventArgs](/api/wisej.web/containers/datarepeater/wisej.web.datarepeateraddremoveitemseventargs.md) object that contains the event data. |

### ![](/files/lzopMboA31bVq8UIcbT3) OnItemSelected(e)

Fires the [ItemSelected](#itemselected) event.

| Parameter | Type                                                                                                       | Description                                                                                                                                        |
| --------- | ---------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- |
| **e**     | [DataRepeaterItemEventArgs](/api/wisej.web/containers/datarepeater/wisej.web.datarepeateritemeventargs.md) | An [DataRepeaterItemEventArgs](/api/wisej.web/containers/datarepeater/wisej.web.datarepeateritemeventargs.md) object that contains the event data. |

### ![](/files/lzopMboA31bVq8UIcbT3) OnItemsRemoved(e)

Fires the [ItemsRemoved](#itemsremoved) event.

| Parameter | Type                                                                                                                           | Description                                                                                                                                                            |
| --------- | ------------------------------------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **e**     | [DataRepeaterAddRemoveItemsEventArgs](/api/wisej.web/containers/datarepeater/wisej.web.datarepeateraddremoveitemseventargs.md) | An [DataRepeaterAddRemoveItemsEventArgs](/api/wisej.web/containers/datarepeater/wisej.web.datarepeateraddremoveitemseventargs.md) object that contains the event data. |

### ![](/files/lzopMboA31bVq8UIcbT3) OnItemUpdate(e)

Fires the [ItemUpdate](#itemupdate) event.

| Parameter | Type                                                                                                       | Description                                                                                                                                        |
| --------- | ---------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- |
| **e**     | [DataRepeaterItemEventArgs](/api/wisej.web/containers/datarepeater/wisej.web.datarepeateritemeventargs.md) | An [DataRepeaterItemEventArgs](/api/wisej.web/containers/datarepeater/wisej.web.datarepeateritemeventargs.md) object that contains the event data. |

### ![](/files/lzopMboA31bVq8UIcbT3) OnItemValueNeeded(e)

Fires the [ItemValueNeeded](#itemvalueneeded) event.

| Parameter | Type                                                                                                                 | Description                                                                                                                                                  |
| --------- | -------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **e**     | [DataRepeaterItemValueEventArgs](/api/wisej.web/containers/datarepeater/wisej.web.datarepeateritemvalueeventargs.md) | An [DataRepeaterItemValueEventArgs](/api/wisej.web/containers/datarepeater/wisej.web.datarepeateritemvalueeventargs.md) object that contains the event data. |

### ![](/files/lzopMboA31bVq8UIcbT3) OnItemValuePushed(e)

Fires the [ItemValueNeeded](#itemvalueneeded) event.

| Parameter | Type                                                                                                                 | Description                                                                                                                                                  |
| --------- | -------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **e**     | [DataRepeaterItemValueEventArgs](/api/wisej.web/containers/datarepeater/wisej.web.datarepeateritemvalueeventargs.md) | An [DataRepeaterItemValueEventArgs](/api/wisej.web/containers/datarepeater/wisej.web.datarepeateritemvalueeventargs.md) object that contains the event data. |

### ![](/files/lzopMboA31bVq8UIcbT3) OnLayoutStyleChanged(e)

Fires the [LayoutStyleChanged](#layoutstylechanged) event.

| Parameter | Type                                                                | Description                                                                                         |
| --------- | ------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- |
| **e**     | [EventArgs](https://docs.microsoft.com/dotnet/api/system.eventargs) | A [EventArgs](https://docs.microsoft.com/dotnet/api/system.eventargs) that contains the event data. |

### ![](/files/lzopMboA31bVq8UIcbT3) OnNewItemNeeded(e)

Fires the [NewItemNeeded](#newitemneeded) event.

| Parameter | Type                                                                | Description                                                                                                 |
| --------- | ------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- |
| **e**     | [EventArgs](https://docs.microsoft.com/dotnet/api/system.eventargs) | An [EventArgs](https://docs.microsoft.com/dotnet/api/system.eventargs) object that contains the event data. |

### ![](/files/lzopMboA31bVq8UIcbT3) OnUserAddedItems(e)

Fires the [UserAddedItems](#useraddeditems) event.

| Parameter | Type                                                                                                                           | Description                                                                                                                                                            |
| --------- | ------------------------------------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **e**     | [DataRepeaterAddRemoveItemsEventArgs](/api/wisej.web/containers/datarepeater/wisej.web.datarepeateraddremoveitemseventargs.md) | An [DataRepeaterAddRemoveItemsEventArgs](/api/wisej.web/containers/datarepeater/wisej.web.datarepeateraddremoveitemseventargs.md) object that contains the event data. |

### ![](/files/lzopMboA31bVq8UIcbT3) OnUserDeletedItems(e)

Fires the [UserDeletedItems](#userdeleteditems) event.

| Parameter | Type                                                                                                                           | Description                                                                                                                                                            |
| --------- | ------------------------------------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **e**     | [DataRepeaterAddRemoveItemsEventArgs](/api/wisej.web/containers/datarepeater/wisej.web.datarepeateraddremoveitemseventargs.md) | An [DataRepeaterAddRemoveItemsEventArgs](/api/wisej.web/containers/datarepeater/wisej.web.datarepeateraddremoveitemseventargs.md) object that contains the event data. |

### ![](/files/lzopMboA31bVq8UIcbT3) OnUserDeletingItems(e)

Fires the [UserDeletingItems](#userdeletingitems) event.

| Parameter | Type                                                                                                                                       | Description                                                                                                                                                                        |
| --------- | ------------------------------------------------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **e**     | [DataRepeaterAddRemoveItemsCancelEventArgs](/api/wisej.web/containers/datarepeater/wisej.web.datarepeateraddremoveitemscanceleventargs.md) | An [DataRepeaterAddRemoveItemsCancelEventArgs](/api/wisej.web/containers/datarepeater/wisej.web.datarepeateraddremoveitemscanceleventargs.md) object that contains the event data. |

### ![](/files/lzopMboA31bVq8UIcbT3) OnValidating(e)

Fires the [Validating](/api/wisej.web/general/control.md#validating) event.

| Parameter | Type                                                                                           | Description                                                                                                                    |
| --------- | ---------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------ |
| **e**     | [CancelEventArgs](https://docs.microsoft.com/dotnet/api/system.componentmodel.canceleventargs) | A [CancelEventArgs](https://docs.microsoft.com/dotnet/api/system.componentmodel.canceleventargs) that contains the event data. |

### ![](/files/lzopMboA31bVq8UIcbT3) OnVirtualModeChanged(e)

Fires the [VirtualModeChanged](#virtualmodechanged) event.

| Parameter | Type                                                                | Description                                                                                         |
| --------- | ------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- |
| **e**     | [EventArgs](https://docs.microsoft.com/dotnet/api/system.eventargs) | A [EventArgs](https://docs.microsoft.com/dotnet/api/system.eventargs) that contains the event data. |

### ![](/files/lzopMboA31bVq8UIcbT3) OnWebEvent(e)

Processes the event from the client.

| Parameter | Type                                                        | Description      |
| --------- | ----------------------------------------------------------- | ---------------- |
| **e**     | [WisejEventArgs](/api/wisej.core/general/wisejeventargs.md) | Event arguments. |

### ![](/files/lzopMboA31bVq8UIcbT3) OnWebRender(config)

Renders the client component.

| Parameter  | Type                                                          | Description                   |
| ---------- | ------------------------------------------------------------- | ----------------------------- |
| **config** | [Object](https://docs.microsoft.com/dotnet/api/system.object) | Dynamic configuration object. |

### ![](/files/lzopMboA31bVq8UIcbT3) OnWebUpdate(state)

Updates the client component using the state information.

| Parameter | Type                                                          | Description           |
| --------- | ------------------------------------------------------------- | --------------------- |
| **state** | [Object](https://docs.microsoft.com/dotnet/api/system.object) | Dynamic state object. |

### ![](/files/hsR4ok3152WyAf8J2C1u) Refresh()

Forces a full reload of the data displayed by this [DataRepeater](/api/wisej.web/containers/datarepeater.md).

### ![](/files/hsR4ok3152WyAf8J2C1u) Refresh(refreshChildren)

Forces a full reload of the data displayed by this [DataRepeater](/api/wisej.web/containers/datarepeater.md).

| Parameter           | Type                                                            | Description                                            |
| ------------------- | --------------------------------------------------------------- | ------------------------------------------------------ |
| **refreshChildren** | [Boolean](https://docs.microsoft.com/dotnet/api/system.boolean) | True to also refresh all the children of this control. |

### ![](/files/hsR4ok3152WyAf8J2C1u) RemoveAt(index)

Removes a [DataRepeaterItem](/api/wisej.web/containers/datarepeater/wisej.web.datarepeateritem.md) at the specified position from a [DataRepeater](/api/wisej.web/containers/datarepeater.md) control.

| Parameter | Type                                                        | Description                                                                                                |
| --------- | ----------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- |
| **index** | [Int32](https://docs.microsoft.com/dotnet/api/system.int32) | The index of the [DataRepeaterItem](/api/wisej.web/containers/datarepeater/wisej.web.datarepeateritem.md). |

**Throws:**

* [ArgumentOutOfRangeException](https://docs.microsoft.com/dotnet/api/system.argumentoutofrangeexception)\
  The value specified for *index* is less than 0 or greater than [ItemCount](#itemcount) - 1.

### ![](/files/lzopMboA31bVq8UIcbT3) RenderScrollableProperties(config)

| Parameter  | Type                                                          | Description |
| ---------- | ------------------------------------------------------------- | ----------- |
| **config** | [Object](https://docs.microsoft.com/dotnet/api/system.object) |             |

### ![](/files/hsR4ok3152WyAf8J2C1u) ResetItemBorderStyle()

Resets the value of [ItemBorderStyle](#itemborderstyle) to the original value.

### ![](/files/hsR4ok3152WyAf8J2C1u) ResetItemHeaderSize()

Resets the value of [ItemHeaderSize](#itemheadersize) to the original value.

### ![](/files/hsR4ok3152WyAf8J2C1u) ResetItemHeaderVisible()

Resets the value of [ItemHeaderVisible](#itemheadervisible) to the original value.

### ![](/files/hsR4ok3152WyAf8J2C1u) ScrollItemIntoView(index)

Scrolls the specified [DataRepeaterItem](/api/wisej.web/containers/datarepeater/wisej.web.datarepeateritem.md) into view.

| Parameter | Type                                                        | Description                                                                                                |
| --------- | ----------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- |
| **index** | [Int32](https://docs.microsoft.com/dotnet/api/system.int32) | The index of the [DataRepeaterItem](/api/wisej.web/containers/datarepeater/wisej.web.datarepeateritem.md). |

**Throws:**

* [ArgumentOutOfRangeException](https://docs.microsoft.com/dotnet/api/system.argumentoutofrangeexception)\
  The value specified for *index* is less than 0 or greater than [ItemCount](#itemcount) - 1.

### ![](/files/hsR4ok3152WyAf8J2C1u) ScrollItemIntoView(index, alignWithTop)

Scrolls a specified [DataRepeaterItem](/api/wisej.web/containers/datarepeater/wisej.web.datarepeateritem.md) into view, optionally aligning it with the top of the control.

| Parameter        | Type                                                            | Description                                                                                                                                                          |
| ---------------- | --------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **index**        | [Int32](https://docs.microsoft.com/dotnet/api/system.int32)     | The index of the [DataRepeaterItem](/api/wisej.web/containers/datarepeater/wisej.web.datarepeateritem.md).                                                           |
| **alignWithTop** | [Boolean](https://docs.microsoft.com/dotnet/api/system.boolean) | true to align the top of the [DataRepeaterItem](/api/wisej.web/containers/datarepeater/wisej.web.datarepeateritem.md) with the top of the control; otherwise, false. |

**Throws:**

* [ArgumentOutOfRangeException](https://docs.microsoft.com/dotnet/api/system.argumentoutofrangeexception)\
  The value specified for *index* is less than 0 or greater than [ItemCount](#itemcount) - 1.

### ![](/files/lzopMboA31bVq8UIcbT3) SetBoundsCore(x, y, width, height, specified)

| Parameter     | Type                                                                        | Description |
| ------------- | --------------------------------------------------------------------------- | ----------- |
| **x**         | [Int32](https://docs.microsoft.com/dotnet/api/system.int32)                 |             |
| **y**         | [Int32](https://docs.microsoft.com/dotnet/api/system.int32)                 |             |
| **width**     | [Int32](https://docs.microsoft.com/dotnet/api/system.int32)                 |             |
| **height**    | [Int32](https://docs.microsoft.com/dotnet/api/system.int32)                 |             |
| **specified** | [BoundsSpecified](/api/wisej.web/enumerations/wisej.web.boundsspecified.md) |             |

## Events

### ![](/files/hsR4ok3152WyAf8J2C1u) AllowUserToAddItemsChanged

[EventHandler](https://docs.microsoft.com/dotnet/api/system.eventhandler) Fired when the [AllowUserToAddItems](#allowusertoadditems) property changes.

### ![](/files/hsR4ok3152WyAf8J2C1u) AllowUserToDeleteItemsChanged

[EventHandler](https://docs.microsoft.com/dotnet/api/system.eventhandler) Fired when the [AllowUserToDeleteItems](#allowusertodeleteitems) property changes.

### ![](/files/hsR4ok3152WyAf8J2C1u) CurrentItemIndexChanged

[EventHandler](https://docs.microsoft.com/dotnet/api/system.eventhandler) Fired when the property [CurrentItemIndex](#currentitemindex) changes.

### ![](/files/hsR4ok3152WyAf8J2C1u) DataError

[DataRepeaterDataErrorEventHandler](/api/wisej.web/containers/datarepeater/wisej.web.datarepeaterdataerroreventhandler.md) Fired when an external data-parsing or validation operation throws an exception, or when an attempt to commit data to a data source fails.

### ![](/files/hsR4ok3152WyAf8J2C1u) DataMemberChanged

[EventHandler](https://docs.microsoft.com/dotnet/api/system.eventhandler) Fired when the [DataMember](#datamember) property changes.

### ![](/files/hsR4ok3152WyAf8J2C1u) DataSourceChanged

[EventHandler](https://docs.microsoft.com/dotnet/api/system.eventhandler) Fired when the [DataSource](#datasource) property changes.

### ![](/files/hsR4ok3152WyAf8J2C1u) ItemCloned

[DataRepeaterItemEventHandler](/api/wisej.web/containers/datarepeater/wisej.web.datarepeateritemeventhandler.md) Fired after the [DataRepeaterItem](/api/wisej.web/containers/datarepeater/wisej.web.datarepeateritem.md) and its controls are cloned from the [ItemTemplate](#itemtemplate).

### ![](/files/hsR4ok3152WyAf8J2C1u) ItemCloning

[DataRepeaterItemCloneEventHandler](/api/wisej.web/containers/datarepeater/wisej.web.datarepeateritemcloneeventhandler.md) Fired before the [DataRepeaterItem](/api/wisej.web/containers/datarepeater/wisej.web.datarepeateritem.md) and its controls are cloned from the [ItemTemplate](#itemtemplate).

### ![](/files/hsR4ok3152WyAf8J2C1u) ItemsAdded

[DataRepeaterAddRemoveItemsEventHandler](/api/wisej.web/containers/datarepeater/wisej.web.datarepeateraddremoveitemseventhandler.md) Fired when a new [DataRepeaterItem](/api/wisej.web/containers/datarepeater/wisej.web.datarepeateritem.md) is added to the [DataRepeater](/api/wisej.web/containers/datarepeater.md) control.

### ![](/files/hsR4ok3152WyAf8J2C1u) ItemSelected

[DataRepeaterItemEventHandler](/api/wisej.web/containers/datarepeater/wisej.web.datarepeateritemeventhandler.md) Fired after the [DataRepeaterItem](/api/wisej.web/containers/datarepeater/wisej.web.datarepeateritem.md) becomes the current item.

### ![](/files/hsR4ok3152WyAf8J2C1u) ItemsRemoved

[DataRepeaterAddRemoveItemsEventHandler](/api/wisej.web/containers/datarepeater/wisej.web.datarepeateraddremoveitemseventhandler.md) Fired when a [DataRepeaterItem](/api/wisej.web/containers/datarepeater/wisej.web.datarepeateritem.md) is deleted from the [DataRepeater](/api/wisej.web/containers/datarepeater.md) control.

### ![](/files/hsR4ok3152WyAf8J2C1u) ItemUpdate

[DataRepeaterItemEventHandler](/api/wisej.web/containers/datarepeater/wisej.web.datarepeateritemeventhandler.md) Fired when an instance of [DataRepeaterItem](/api/wisej.web/containers/datarepeater/wisej.web.datarepeateritem.md) is updated.

### ![](/files/hsR4ok3152WyAf8J2C1u) ItemValueNeeded

[DataRepeaterItemValueEventHandler](/api/wisej.web/containers/datarepeater/wisej.web.datarepeateritemvalueeventhandler.md) Fired when the [VirtualMode](#virtualmode) property is set to true and a new value for a child control of a [DataRepeaterItem](/api/wisej.web/containers/datarepeater/wisej.web.datarepeateritem.md) is needed.

### ![](/files/hsR4ok3152WyAf8J2C1u) ItemValuePushed

[DataRepeaterItemValueEventHandler](/api/wisej.web/containers/datarepeater/wisej.web.datarepeateritemvalueeventhandler.md) Fired when the [VirtualMode](#virtualmode) property is set to true and the value of a child control in the [DataRepeaterItem](/api/wisej.web/containers/datarepeater/wisej.web.datarepeateritem.md) changes.

### ![](/files/hsR4ok3152WyAf8J2C1u) LayoutStyleChanged

[EventHandler](https://docs.microsoft.com/dotnet/api/system.eventhandler) Fired when the [LayoutStyle](#layoutstyle) property changes.

### ![](/files/hsR4ok3152WyAf8J2C1u) NewItemNeeded

[EventHandler](https://docs.microsoft.com/dotnet/api/system.eventhandler) Fired when the [VirtualMode](#virtualmode) property is set to true and the user creates a new [DataRepeaterItem](/api/wisej.web/containers/datarepeater/wisej.web.datarepeateritem.md).

### ![](/files/hsR4ok3152WyAf8J2C1u) UserAddedItems

[DataRepeaterAddRemoveItemsEventHandler](/api/wisej.web/containers/datarepeater/wisej.web.datarepeateraddremoveitemseventhandler.md) Fired when the user adds a new [DataRepeaterItem](/api/wisej.web/containers/datarepeater/wisej.web.datarepeateritem.md).

### ![](/files/hsR4ok3152WyAf8J2C1u) UserDeletedItems

[DataRepeaterAddRemoveItemsEventHandler](/api/wisej.web/containers/datarepeater/wisej.web.datarepeateraddremoveitemseventhandler.md) Fired after the user deletes a [DataRepeaterItem](/api/wisej.web/containers/datarepeater/wisej.web.datarepeateritem.md).

### ![](/files/hsR4ok3152WyAf8J2C1u) UserDeletingItems

[DataRepeaterAddRemoveItemsCancelEventHandler](/api/wisej.web/containers/datarepeater/wisej.web.datarepeateraddremoveitemscanceleventhandler.md) Fired when the user deletes a [DataRepeaterItem](/api/wisej.web/containers/datarepeater/wisej.web.datarepeateritem.md).

### ![](/files/hsR4ok3152WyAf8J2C1u) VirtualModeChanged

[EventHandler](https://docs.microsoft.com/dotnet/api/system.eventhandler) Fired when the [VirtualMode](#virtualmode) property changes.

## Implements

| Name                                                                              | Description                                                                                                           |
| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- |
| [IUserData](/api/wisej.web/interfaces/wisej.web.iuserdata.md)                     | Provides access to the `UserData` and `Tag` properties associated to the component implementing this interface.       |
| [IBindableComponent](/api/wisej.web/data-binding/wisej.web.ibindablecomponent.md) | Bindable components implement this interface.                                                                         |
| [IContainerControl](/api/wisej.web/interfaces/wisej.web.icontainercontrol.md)     | Provides the functionality for a control to act as a parent for other controls.                                       |
| [IDropTarget](/api/wisej.web/interfaces/wisej.web.idroptarget.md)                 | Controls that support drag & drop operations implement this interface.                                                |
| [IWisejComponent](/api/wisej.core/interfaces/wisej.core.iwisejcomponent.md)       | All wisej components implement this interface.                                                                        |
| [IWisejControl](/api/wisej.core/interfaces/wisej.core.iwisejcontrol.md)           | All wisej controls derived from the [Control](/api/wisej.web/general/control.md) class must implement this interface. |
| [IWisejSerializable](/api/wisej.core/interfaces/wisej.core.iwisejserializable.md) | Allows an object to serialize itself.                                                                                 |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.wisej.com/api/wisej.web/containers/datarepeater.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
