# ListView

Namespace: **Wisej.Web**

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

* [Control](https://docs.wisej.com/api/wisej.web/general/control)
  * [ListView](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview)

Represents a list view control, which displays a collection of items that can be displayed using one of four different views.

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

```csharp
public class ListView : Control, IWisejDataStore
```

{% endtab %}

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

```visual-basic
Public Class ListView
    Inherits Control
    Implements IWisejDataStore
```

{% endtab %}
{% endtabs %}

## Constructors

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) ListView()

Initializes a new instance of the [ListView](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview) class.

## Properties

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) AllowColumnReorder

[Boolean](https://docs.microsoft.com/dotnet/api/system.boolean): Returns or sets whether the user can drag column headers to reorder columns in the control. (Default: `False`)

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) AllowColumnSorting

[Boolean](https://docs.microsoft.com/dotnet/api/system.boolean): Returns or sets whether the user can sort columns by clicking on the header. (Default: `False`)

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) BorderStyle

[BorderStyle](https://docs.wisej.com/api/wisej.web/enumerations/wisej.web.borderstyle): Returns or sets the border style of the control. (Default: `Solid`)

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) CheckBoxes

[Boolean](https://docs.microsoft.com/dotnet/api/system.boolean): Returns or sets whether a check box appears next to each item. (Default: `False`)

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) CheckedIndices

[CheckedIndexCollection](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.listview.checkedindexcollection): Returns the indexes of the currently checked items in the control.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) CheckedItems

[CheckedListViewItemCollection](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.listview.checkedlistviewitemcollection): Returns the currently checked items in the control.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) ColumnCount

[Int32](https://docs.microsoft.com/dotnet/api/system.int32): Returns the number of columns without creating the columns collection.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) Columns

[ColumnHeaderCollection](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.listview.columnheadercollection): Returns the collection of all column headers that appear in the control.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) DataMember

[String](https://docs.microsoft.com/dotnet/api/system.string): Returns or sets the name of the list or table in the data source for which the [ListView](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview) is displaying data. (Default: `""`)

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) DataSource

[Object](https://docs.microsoft.com/dotnet/api/system.object): Returns or sets the data source for this [ListView](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview). (Default: `null`)

**Throws:**

* [ArgumentException](https://docs.microsoft.com/dotnet/api/system.argumentexception)\
  The assigned value does not implement the [IList](https://docs.microsoft.com/dotnet/api/system.collections.ilist) or [IListSource](https://docs.microsoft.com/dotnet/api/system.componentmodel.ilistsource) interfaces.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) DefaultItemPadding

[Padding](https://docs.wisej.com/api/wisej.web/general/wisej.web.padding): Returns the default value for the [ItemPadding](#itempadding) property.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) DisplayPropertyName

[String](https://docs.microsoft.com/dotnet/api/system.string): Returns or sets the property to display in the [Items](#items). (Default: `""`)

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) FocusedItem

[ListViewItem](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.listviewitem): Returns or sets the item that currently has the focus.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) GridLines

[Boolean](https://docs.microsoft.com/dotnet/api/system.boolean): Returns or sets whether grid lines appear between the rows and columns containing the items and subitems in the control. (Default: `True`)

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) GridLineStyle

[GridLineStyle](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.gridlinestyle): Returns or sets the cell border style for the [ListView](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview) control when its [View](#view) property is set to Details and the [GridLines](#gridlines) property is set to true. (Default: `Vertical`)

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) HeaderStyle

[ColumnHeaderStyle](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.columnheaderstyle): Returns or sets the column header style. (Default: `Clickable`)

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) HScroll

[Boolean](https://docs.microsoft.com/dotnet/api/system.boolean): Returns whether the horizontal scroll bar is visible.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) IconPropertyName

[String](https://docs.microsoft.com/dotnet/api/system.string): Returns or sets the property to use as the icon for the [Items](#items). (Default: `""`)

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) ItemPadding

[Padding](https://docs.wisej.com/api/wisej.web/general/wisej.web.padding): Returns or sets the padding inside [ListViewItem](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.listviewitem) objects in any [View](#view) mode.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) Items

[ListViewItemCollection](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.listview.listviewitemcollection): Returns a collection containing all items in the control.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) ItemSize

[Size](https://docs.microsoft.com/dotnet/api/system.drawing.size): Returns or sets the size of the items in the list view. If left empty (0, 0), the control uses the item size set in the current theme.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) ItemSorter

[IComparer\<ListViewItem>](https://docs.microsoft.com/dotnet/api/system.collections.generic.icomparer-1): Returns or sets the sorting comparer for the control.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) LabelEdit

[Boolean](https://docs.microsoft.com/dotnet/api/system.boolean): Returns or sets whether the user can edit the labels of items in the control. (Default: `False`)

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) LabelWrap

[Boolean](https://docs.microsoft.com/dotnet/api/system.boolean): Returns or sets whether the text in the [ListViewItem](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.listviewitem) item can wrap. (Default: `False`)

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) LargeImageList

[ImageList](https://docs.wisej.com/api/wisej.web/content/imagelist): Returns or sets the [ImageList](https://docs.wisej.com/api/wisej.web/content/imagelist) to use to display the icon in the [ListViewItem](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.listviewitem) elements when the [View](#view) is set to [LargeIcon](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.view#fields) or [Tile](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.view#fields). (Default: `null`)

If [LargeImageList](#largeimagelist) is not set, Wisej will use [SmallImageList](#smallimagelist) and scale the icons.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) LiveResize

[Boolean](https://docs.microsoft.com/dotnet/api/system.boolean): Returns or sets whether the column and row resizing should be updated as the user resizes the row or the column. (Default: `False`)

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) MultiSelect

[Boolean](https://docs.microsoft.com/dotnet/api/system.boolean): Returns or sets whether multiple items can be selected. (Default: `False`)

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) 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`)

Setting the property [PrefetchItems](#prefetchitems) to a value greater than 0 allows the virtual view to prefetch the specified number of items outside of the visible area to enable smoother scrolling.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) Scrollable

[Boolean](https://docs.microsoft.com/dotnet/api/system.boolean): Returns or sets whether a scroll bar is added to the control when there is not enough room to display all items. (Default: `True`)

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) SelectedIndex

[Int32](https://docs.microsoft.com/dotnet/api/system.int32): Returns or sets the index of the focused [ListViewItem](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.listviewitem).

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) SelectedIndices

[SelectedIndexCollection](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.listview.selectedindexcollection): Returns the indexes of the selected items in the control.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) SelectedItems

[SelectedListViewItemCollection](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.listview.selectedlistviewitemcollection): Returns the items that are selected in the control.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) SelectionMode

[SelectionMode](https://docs.wisej.com/api/wisej.web/enumerations/wisej.web.selectionmode): Returns or sets the current selection mode determining how items are selected in the [ListView](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview). (Default: `One`)

When in [Details](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.view#fields) view, the [MultiSimple](https://docs.wisej.com/api/enumerations/wisej.web.selectionmode#fields) behaves as the [MultiExtended](https://docs.wisej.com/api/enumerations/wisej.web.selectionmode#fields). The [DataGridView](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview) that renders the details view supports only the [MultiSelect](https://docs.wisej.com/api/wisej.web/datagridview#multiselect) property true or false and uses the [SelectionMode](https://docs.wisej.com/api/wisej.web/datagridview#selectionmode) property to determine how elements of the grid are selected, which is always set to [FullRowSelect](https://docs.wisej.com/api/wisej.web/datagridview/wisej.web.datagridviewselectionmode#fields) when use inside the ListView.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) ShowItemToolTips

[Boolean](https://docs.microsoft.com/dotnet/api/system.boolean): Returns or sets whether ToolTips are shown for the [ListViewItem](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.listviewitem) objects contained in the [ListView](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview). (Default: `False`)

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) SmallImageList

[ImageList](https://docs.wisej.com/api/wisej.web/content/imagelist): Returns or sets the [ImageList](https://docs.wisej.com/api/wisej.web/content/imagelist) to use to display the icon in the [ListViewItem](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.listviewitem) elements when the [View](#view) is set to [SmallIcon](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.view#fields) or [Details](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.view#fields). (Default: `null`)

If [SmallImageList](#smallimagelist) is not set, Wisej will use [LargeImageList](#largeimagelist) and scale the icons.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) SortedColumn

[ColumnHeader](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.columnheader): Returns the column by which the [ListView](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview) contents are currently sorted.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) Sorting

[SortOrder](https://docs.wisej.com/api/wisej.web/enumerations/wisej.web.sortorder): Returns or sets the sort order for items in the control. (Default: `None`)

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) SortOrder

[SortOrder](https://docs.wisej.com/api/wisej.web/enumerations/wisej.web.sortorder): Returns a value indicating whether the items in the [ListView](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview) control are sorted in ascending or descending order, or are not sorted.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) StateImageList

[ImageList](https://docs.wisej.com/api/wisej.web/content/imagelist): Returns or sets the [ImageList](https://docs.wisej.com/api/wisej.web/content/imagelist) associated with states set for each [ListViewItem](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.listviewitem). (Default: `null`)

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) Tools

[ComponentToolCollection](https://docs.wisej.com/api/wisej.web/editors/wisej.web.componenttoolcollection): Returns the collection of the [ComponentTool](https://docs.wisej.com/api/wisej.web/editors/wisej.web.componenttool) items associated with this control.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) ToolsPosition

[Position](https://docs.wisej.com/api/wisej.web/enumerations/wisej.web.position): Returns or sets the position of the [ComponentTool](https://docs.wisej.com/api/wisej.web/editors/wisej.web.componenttool) items associated with this control. (Default: `Top`)

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) View

[View](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.view): Returns or sets how items are displayed in the control. (Default: `LargeIcon`)

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) VirtualListSize

[Int32](https://docs.microsoft.com/dotnet/api/system.int32): Returns or sets the number of [ListViewItem](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.listviewitem) objects contained in the list when in virtual mode. (Default: `0`)

**Throws:**

* [ArgumentException](https://docs.microsoft.com/dotnet/api/system.argumentexception)[VirtualListSize](#virtuallistsize) is set to a value less than 0.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) VirtualMode

[Boolean](https://docs.microsoft.com/dotnet/api/system.boolean): Returns or sets whether you have provided your own data-management operations for the [ListView](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview) control. (Default: `False`)

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) VScroll

[Boolean](https://docs.microsoft.com/dotnet/api/system.boolean): Returns whether the vertical scroll bar is visible.

## Methods

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) Append(data, dataMember)

Populates the [DataGridView](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview) from the *data* appending the rows to the existing rows.

| Parameter                                                                                                                                                                                                                    | Type                                                          | Description                                                                                                                                                               |
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **data**                                                                                                                                                                                                                     | [Object](https://docs.microsoft.com/dotnet/api/system.object) | The object that contains data for the [ListView](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview) to display.                                               |
| **dataMember** ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-723b640963c6cd781ff8c5ce5b24149fa0af7b9c%2Fbadge-optional.svg?alt=media) | [String](https://docs.microsoft.com/dotnet/api/system.string) | The name of the table or list in the *data* object for which the [DataGridView](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview) should load the items. |

**Returns:** [Int32](https://docs.microsoft.com/dotnet/api/system.int32). Numbers of items appended.

Use this method to fill a [ListView](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview) without binding it to the data source.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) AutoResizeColumn(columnIndex, headerAutoResize)

Resizes the width of the given column as indicated by the resize style.

| Parameter            | Type                                                                                                                               | Description                                                                                                                                           |
| -------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- |
| **columnIndex**      | [Int32](https://docs.microsoft.com/dotnet/api/system.int32)                                                                        | The zero-based index of the column to resize.                                                                                                         |
| **headerAutoResize** | [ColumnHeaderAutoResizeStyle](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.columnheaderautoresizestyle) | One of the [ColumnHeaderAutoResizeStyle](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.columnheaderautoresizestyle) values. |

**Throws:**

* [ArgumentOutOfRangeException](https://docs.microsoft.com/dotnet/api/system.argumentoutofrangeexception)*columnIndex* is greater than 0 when [Columns](#columns) is null-or- *columnIndex* is less than 0 or greater than the number of columns set.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) AutoResizeColumns(headerAutoResize)

Resizes the width of the columns as indicated by the resize style.

| Parameter            | Type                                                                                                                               | Description                                                                                                                                           |
| -------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- |
| **headerAutoResize** | [ColumnHeaderAutoResizeStyle](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.columnheaderautoresizestyle) | One of the [ColumnHeaderAutoResizeStyle](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.columnheaderautoresizestyle) values. |

**Throws:**

* [InvalidOperationException](https://docs.microsoft.com/dotnet/api/system.invalidoperationexception)[AutoResizeColumn](#autoresizecolumn-columnindex-headerautoresize) is called with a value other than [None](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.columnheaderautoresizestyle#fields) when [View](#view) is not set to [Details](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.view#fields).

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) BeginUpdate()

Prevents the control from updating until the [EndUpdate](#endupdate) method is called.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) Clear()

Removes all items and columns from the control.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) ClearSelection()

Clears the current selection.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) Dispose(disposing)

Disposes the control and all the owned columns.

| Parameter     | Type                                                            | Description                                                                 |
| ------------- | --------------------------------------------------------------- | --------------------------------------------------------------------------- |
| **disposing** | [Boolean](https://docs.microsoft.com/dotnet/api/system.boolean) | true when this method is called by the application rather than a finalizer. |

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) EndUpdate()

Resumes updating of the list view control after suspending it by the [BeginUpdate](#beginupdate) method.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) EnsureVisible(index)

Ensures that the specified item is visible within the control, scrolling the contents of the control if necessary.

| Parameter | Type                                                        | Description                                           |
| --------- | ----------------------------------------------------------- | ----------------------------------------------------- |
| **index** | [Int32](https://docs.microsoft.com/dotnet/api/system.int32) | The zero-based index of the item to scroll into view. |

**Throws:**

* [ArgumentOutOfRangeException](https://docs.microsoft.com/dotnet/api/system.argumentoutofrangeexception)*index* is less than 0 or greater than the last item's index.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) Fill(data, dataMember)

Populates the [ListView](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview) from the *data* .

| Parameter                                                                                                                                                                                                                    | Type                                                          | Description                                                                                                                                                       |
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **data**                                                                                                                                                                                                                     | [Object](https://docs.microsoft.com/dotnet/api/system.object) | The object that contains data for the [ListView](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview) to display.                                       |
| **dataMember** ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-723b640963c6cd781ff8c5ce5b24149fa0af7b9c%2Fbadge-optional.svg?alt=media) | [String](https://docs.microsoft.com/dotnet/api/system.string) | The name of the table or list in the *data* object for which the [ListView](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview) should load the items. |

**Returns:** [Int32](https://docs.microsoft.com/dotnet/api/system.int32). Numbers of items added.

Use this method to fill a [ListView](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview) without binding it to the data source.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) FindItemWithText(text)

Finds the first [ListViewItem](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.listviewitem) that begins with the specified text value.

| Parameter | Type                                                          | Description             |
| --------- | ------------------------------------------------------------- | ----------------------- |
| **text**  | [String](https://docs.microsoft.com/dotnet/api/system.string) | The text to search for. |

**Returns:** [ListViewItem](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.listviewitem). The first [ListViewItem](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.listviewitem) that begins with the specified text value.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) FindItemWithText(text, includeSubItemsInSearch, startIndex)

Finds the first [ListViewItem](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.listviewitem) or [ListViewSubItem](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.listviewitem.listviewsubitem), if indicated, that begins with the specified text value. The search starts at the specified index.

| Parameter                   | Type                                                            | Description                                                |
| --------------------------- | --------------------------------------------------------------- | ---------------------------------------------------------- |
| **text**                    | [String](https://docs.microsoft.com/dotnet/api/system.string)   | The text to search for.                                    |
| **includeSubItemsInSearch** | [Boolean](https://docs.microsoft.com/dotnet/api/system.boolean) | true to include sub-items in the search; otherwise, false. |
| **startIndex**              | [Int32](https://docs.microsoft.com/dotnet/api/system.int32)     | The index of the item at which to start the search.        |

**Returns:** [ListViewItem](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.listviewitem). The first [ListViewItem](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.listviewitem) that begins with the specified text value.

**Throws:**

* [ArgumentOutOfRangeException](https://docs.microsoft.com/dotnet/api/system.argumentoutofrangeexception)*startIndex* is less 0 or more than the number items in the [ListView](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview).

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) FindItemWithText(text, includeSubItemsInSearch, startIndex, isPrefixSearch)

Finds the first [ListViewItem](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.listviewitem) or [ListViewSubItem](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.listviewitem.listviewsubitem), if indicated, that begins with the specified text value. The search starts at the specified index.

| Parameter                   | Type                                                            | Description                                                |
| --------------------------- | --------------------------------------------------------------- | ---------------------------------------------------------- |
| **text**                    | [String](https://docs.microsoft.com/dotnet/api/system.string)   | The text to search for.                                    |
| **includeSubItemsInSearch** | [Boolean](https://docs.microsoft.com/dotnet/api/system.boolean) | true to include sub-items in the search; otherwise, false. |
| **startIndex**              | [Int32](https://docs.microsoft.com/dotnet/api/system.int32)     | The index of the item at which to start the search.        |
| **isPrefixSearch**          | [Boolean](https://docs.microsoft.com/dotnet/api/system.boolean) | true to allow partial matches; otherwise, false.           |

**Returns:** [ListViewItem](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.listviewitem). The first [ListViewItem](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.listviewitem) that begins with the specified text value.

**Throws:**

* [ArgumentOutOfRangeException](https://docs.microsoft.com/dotnet/api/system.argumentoutofrangeexception)*startIndex* is less than 0 or more than the number of items in the [ListView](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview).

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) IsValidColumn(colIndex)

Verifies that the column index refer to a valid column.

| Parameter    | Type                                                        | Description                        |
| ------------ | ----------------------------------------------------------- | ---------------------------------- |
| **colIndex** | [Int32](https://docs.microsoft.com/dotnet/api/system.int32) | The index of the column to verify. |

**Returns:** [Boolean](https://docs.microsoft.com/dotnet/api/system.boolean). true if the column index corresponds to a valid column.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnAddReferences(items)

Returns a collection of referenced components or collection of components.

| Parameter | Type                                                                    | Description |
| --------- | ----------------------------------------------------------------------- | ----------- |
| **items** | [IList](https://docs.microsoft.com/dotnet/api/system.collections.ilist) |             |

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnAfterLabelEdit(e)

Fires the [AfterLabelEdit](#afterlabeledit) event.

| Parameter | Type                                                                                                             | Description                                                                                                                                      |
| --------- | ---------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------ |
| **e**     | [LabelEditEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.labelediteventargs) | A [LabelEditEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.labelediteventargs) that contains the event data. |

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnBeforeLabelEdit(e)

Fires the [BeforeLabelEdit](#beforelabeledit) event.

| Parameter | Type                                                                                                             | Description                                                                                                                                      |
| --------- | ---------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------ |
| **e**     | [LabelEditEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.labelediteventargs) | A [LabelEditEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.labelediteventargs) that contains the event data. |

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnBindingContextChanged(e)

Fires the [BindingContextChanged](https://docs.wisej.com/api/general/control#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. |

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnCacheVirtualItems(e)

Fires the [CacheVirtualItems](#cachevirtualitems) event.

| Parameter | Type                                                                                                                             | Description                                                                                                                                                      |
| --------- | -------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **e**     | [CacheVirtualItemsEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.cachevirtualitemseventargs) | A [CacheVirtualItemsEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.cachevirtualitemseventargs) that contains the event data. |

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnColumnClick(e)

Fires the [ColumnClick](#columnclick) event.

| Parameter | Type                                                                                                                 | Description                                                                                                                                          |
| --------- | -------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- |
| **e**     | [ColumnClickEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.columnclickeventargs) | A [ColumnClickEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.columnclickeventargs) that contains the event data. |

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnColumnDoubleClick(e)

Fires the [ColumnDoubleClick](#columndoubleclick) event.

| Parameter | Type                                                                                                                 | Description                                                                                                                                          |
| --------- | -------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- |
| **e**     | [ColumnClickEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.columnclickeventargs) | A [ColumnClickEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.columnclickeventargs) that contains the event data. |

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnColumnReordered(e)

Fires the [ColumnReordered](#columnreordered) event.

| Parameter | Type                                                                                                                         | Description                                                                                                                                                    |
| --------- | ---------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **e**     | [ColumnReorderedEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.columnreorderedeventargs) | The [ColumnReorderedEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.columnreorderedeventargs) that contains the event data. |

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnColumnWidthChanged(e)

Fires the [ColumnWidthChanged](#columnwidthchanged) event.

| Parameter | Type                                                                                                                               | Description                                                                                                                                                        |
| --------- | ---------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **e**     | [ColumnWidthChangedEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.columnwidthchangedeventargs) | A [ColumnWidthChangedEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.columnwidthchangedeventargs) that contains the event data. |

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnDataBindingComplete(e)

Fires the [DataBindingComplete](#databindingcomplete) event.

| Parameter | Type                                                                                                                                         | Description                                                                                                                                                                  |
| --------- | -------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **e**     | [ListViewBindingCompleteEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.listviewbindingcompleteeventargs) | A [ListViewBindingCompleteEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.listviewbindingcompleteeventargs) that contains the event data. |

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnDataMemberChanged(e)

Fires the [DataMemberChanged](#datamemberchanged) event.

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

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnDataSourceChanged(e)

Fires the [DataSourceChanged](https://docs.wisej.com/api/wisej.web/listcontrol#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. |

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnDataUpdated(e)

Fires the [DataUpdated](#dataupdated) event.

| Parameter | Type                                                                                                                                 | Description                                                                                                                                                          |
| --------- | ------------------------------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **e**     | [ListViewDataUpdatedEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.listviewdataupdatedeventargs) | A [ListViewDataUpdatedEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.listviewdataupdatedeventargs) that contains the event data. |

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnItemCheck(e)

Fires the [ItemCheck](#itemcheck) event.

| Parameter | Type                                                                                                                   | Description                                                                                                                                             |
| --------- | ---------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **e**     | [ItemCheckEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/checkedlistbox/wisej.web.itemcheckeventargs) | An [ItemCheckEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/checkedlistbox/wisej.web.itemcheckeventargs) that contains the event data. |

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnItemChecked(e)

Fires the [ItemChecked](#itemchecked) event.

| Parameter | Type                                                                                                                 | Description                                                                                                                                           |
| --------- | -------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- |
| **e**     | [ItemCheckedEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.itemcheckedeventargs) | An [ItemCheckedEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.itemcheckedeventargs) that contains the event data. |

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnItemClick(e)

Fires the [ItemClick](#itemclick) event.

| Parameter | Type                                                                                                             | Description                                                                                                                                      |
| --------- | ---------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------ |
| **e**     | [ItemClickEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.itemclickeventargs) | A [ItemClickEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.itemclickeventargs) that contains the event data. |

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnItemDoubleClick(e)

Fires the [ItemDoubleClick](#itemdoubleclick) event.

| Parameter | Type                                                                                                             | Description                                                                                                                                      |
| --------- | ---------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------ |
| **e**     | [ItemClickEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.itemclickeventargs) | A [ItemClickEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.itemclickeventargs) that contains the event data. |

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnItemDrag(e)

Fires the [ItemDrag](#itemdrag) event.

| Parameter | Type                                                                                                                           | Description                                                                                                                                     |
| --------- | ------------------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------- |
| **e**     | [ListViewItemDragEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.listviewitemdrageventargs) | An [ItemDragEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/treeview/wisej.web.itemdrageventargs) that contains the event data. |

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnItemMouseHover(e)

Fires the [ItemMouseHover](#itemmousehover) event.

| Parameter | Type                                                                                                                       | Description                                                                                                                                                |
| --------- | -------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **e**     | [ItemMouseHoverEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.itemmousehovereventargs) | A [ItemMouseHoverEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.itemmousehovereventargs) that contains the event data. |

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnItemMouseLeave(e)

Fires the [ItemMouseLeave](#itemmouseleave) event.

| Parameter | Type                                                                                                                       | Description                                                                                                                                                |
| --------- | -------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **e**     | [ItemMouseHoverEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.itemmousehovereventargs) | A [ItemMouseHoverEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.itemmousehovereventargs) that contains the event data. |

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnItemSelectionChanged(e)

Fires the [ItemSelectionChanged](#itemselectionchanged) event.

| Parameter | Type                                                                                                                                   | Description                                                                                                                                                            |
| --------- | -------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **e**     | [ItemSelectionChangedEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.itemselectionchangedeventargs) | A [ItemSelectionChangedEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.itemselectionchangedeventargs) that contains the event data. |

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnKeyDown(e)

Fires the [KeyDown](https://docs.wisej.com/api/general/control#keydown) event.

| Parameter | Type                                                                                        | Description                                                                                                                 |
| --------- | ------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- |
| **e**     | [KeyEventArgs](https://docs.wisej.com/api/wisej.web/general/control/wisej.web.keyeventargs) | A [KeyEventArgs](https://docs.wisej.com/api/wisej.web/general/control/wisej.web.keyeventargs) that contains the event data. |

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnMouseUp(e)

Fires the [MouseUp](https://docs.wisej.com/api/general/control#mouseup) event.

| Parameter | Type                                                                                            | Description                                                                                                                     |
| --------- | ----------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- |
| **e**     | [MouseEventArgs](https://docs.wisej.com/api/wisej.web/general/control/wisej.web.mouseeventargs) | A [MouseEventArgs](https://docs.wisej.com/api/wisej.web/general/control/wisej.web.mouseeventargs) that contains the event data. |

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnRetrieveVirtualItem(e)

Fires the [RetrieveVirtualItem](#retrievevirtualitem) event.

| Parameter | Type                                                                                                                                 | Description                                                                                                                                                          |
| --------- | ------------------------------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **e**     | [RetrieveVirtualItemEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.retrievevirtualitemeventargs) | A [RetrieveVirtualItemEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.retrievevirtualitemeventargs) that contains the event data. |

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnScroll(e)

Fires the [Scroll](#scroll) event.

| Parameter | Type                                                                                                | Description                                                                                                                         |
| --------- | --------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- |
| **e**     | [ScrollEventArgs](https://docs.wisej.com/api/wisej.web/content/scrollbar/wisej.web.scrolleventargs) | A [ScrollEventArgs](https://docs.wisej.com/api/wisej.web/content/scrollbar/wisej.web.scrolleventargs) that contains the event data. |

This event fires only if there is an handler attached to it. A simple overload of the On\[Event] method in a derived class will not be invoked unless there is at least one handler attached to the event.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnSearchForVirtualItem(e)

Fires the [SearchForVirtualItem](#searchforvirtualitem) event.

| Parameter | Type                                                                                                                                   | Description                                                                                                                                                            |
| --------- | -------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **e**     | [SearchForVirtualItemEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.searchforvirtualitemeventargs) | A [SearchForVirtualItemEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.searchforvirtualitemeventargs) that contains the event data. |

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnSelectedIndexChanged(e)

Fires the [SelectedIndexChanged](#selectedindexchanged) event.

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

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnToolClick(e)

Fires the ToolClick event.

| Parameter | Type                                                                                            | Description                                                                                                                     |
| --------- | ----------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- |
| **e**     | [ToolClickEventArgs](https://docs.wisej.com/api/wisej.web/editors/wisej.web.toolclickeventargs) | A [ToolClickEventArgs](https://docs.wisej.com/api/wisej.web/editors/wisej.web.toolclickeventargs) that contains the event data. |

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnVirtualItemsSelectionRangeChanged(e)

Fires the [VirtualItemsSelectionRangeChanged](#virtualitemsselectionrangechanged) event.

| Parameter | Type                                                                                                                                                                             | Description                                                                                                                                                                                                      |
| --------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **e**     | [ListViewVirtualItemsSelectionRangeChangedEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.listviewvirtualitemsselectionrangechangedeventargs) | A [ListViewVirtualItemsSelectionRangeChangedEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.listviewvirtualitemsselectionrangechangedeventargs) that contains the event data. |

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnWebDataCount()

Returns the number of available data rows.

**Returns:** [Int32](https://docs.microsoft.com/dotnet/api/system.int32).

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnWebDataRead(firstIndex, lastIndex, sortDirection, sortIndex)

Returns the data requested by the client.

| Parameter         | Type                                                                                               | Description                                                             |
| ----------------- | -------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------- |
| **firstIndex**    | [Int32](https://docs.microsoft.com/dotnet/api/system.int32)                                        | The index of the first requested row.                                   |
| **lastIndex**     | [Int32](https://docs.microsoft.com/dotnet/api/system.int32)                                        | The index of the last requested row.                                    |
| **sortDirection** | [ListSortDirection](https://docs.microsoft.com/dotnet/api/system.componentmodel.listsortdirection) | The sort direction.                                                     |
| **sortIndex**     | [Int32](https://docs.microsoft.com/dotnet/api/system.int32)                                        | The index of the sorted column. Can be -1 if there is no sorted column. |

**Returns:** [Object](https://docs.microsoft.com/dotnet/api/system.object).

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnWebEvent(e)

Processes the event from the client.

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

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnWebRender(config)

Renders the client component.

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

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) 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. |

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) Refresh()

Forces a full reload of the data displayed by this [ListView](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview).

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) Refresh(refreshChildren)

Forces a full reload of the data displayed by this [ListView](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview).

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

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) RefreshItem(index)

Resynchronizes the item data with the contents of the data source.

| Parameter | Type                                                        | Description |
| --------- | ----------------------------------------------------------- | ----------- |
| **index** | [Int32](https://docs.microsoft.com/dotnet/api/system.int32) |             |

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) RefreshItems()

Resynchronizes the item data with the contents of the data source.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) ScrollColumnIntoView(column)

Scrolls the specified column into view.

| Parameter  | Type                                                                                                 | Description                                                                                                                  |
| ---------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- |
| **column** | [ColumnHeader](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.columnheader) | The [ColumnHeader](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.columnheader)to scroll into view. |

**Throws:**

* [ArgumentNullException](https://docs.microsoft.com/dotnet/api/system.argumentnullexception)*column* is null.
* [ArgumentException](https://docs.microsoft.com/dotnet/api/system.argumentexception)*column* belong to a different [ListView](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview).

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) ScrollItemIntoView(item)

Scrolls the specified item into view.

| Parameter | Type                                                                                                 | Description                   |
| --------- | ---------------------------------------------------------------------------------------------------- | ----------------------------- |
| **item**  | [ListViewItem](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.listviewitem) | The item to scroll into view. |

**Throws:**

* [ArgumentNullException](https://docs.microsoft.com/dotnet/api/system.argumentnullexception)*item* is null.
* [ArgumentException](https://docs.microsoft.com/dotnet/api/system.argumentexception)*item* belong to a different [ListView](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview).

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) SelectAll()

Selects all items in the [ListView](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview).

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) Sort(comparison)

Sorts the items of the list view.

| Parameter                                                                                                                                                                                                                    | Type                                                                                   | Description                                                                                                                                                                                                              |
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **comparison** ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-723b640963c6cd781ff8c5ce5b24149fa0af7b9c%2Fbadge-optional.svg?alt=media) | [Comparison\<ListViewItem>](https://docs.microsoft.com/dotnet/api/system.comparison-1) | The comparison expression to use when sorting the items. It's optional - if not specified or null, the [ItemSorter](#itemsorter) instance or a default internal comparer is used to compare the items and sort the list. |

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) Update()

Causes the control to update the corresponding client side widget. When in design mode, causes the rendered control to update its entire surface in the designer.

## Events

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) AfterLabelEdit

[LabelEditEventHandler](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.labelediteventhandler) Fired when the label for an item is edited by the user.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) BeforeLabelEdit

[LabelEditEventHandler](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.labelediteventhandler) Fired when the user starts editing the label of an item.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) CacheVirtualItems

[CacheVirtualItemsEventHandler](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.cachevirtualitemseventhandler) Fired when the contents of the display area for a [ListView](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview) in virtual mode has changed, and the [ListView](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview) determines that a new range of items is needed.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) ColumnClick

[ColumnClickEventHandler](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.columnclickeventhandler) Fired when the user clicks a column header within the list view control.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) ColumnDoubleClick

[ColumnClickEventHandler](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.columnclickeventhandler) Fired when the user double clicks a column header within the list view control.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) ColumnReordered

[ColumnReorderedEventHandler](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.columnreorderedeventhandler) Fired when the column header order is changed.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) ColumnWidthChanged

[ColumnWidthChangedEventHandler](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.columnwidthchangedeventhandler) Fired after the width of a column is successfully changed .

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) DataBindingComplete

[ListViewBindingCompleteEventEventHandler](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.listviewbindingcompleteeventeventhandler) Occurs after a data-binding operation has finished.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) DataMemberChanged

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

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) DataSourceChanged

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

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) DataUpdated

[ListViewDataUpdatedEventHandler](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.listviewdataupdatedeventhandler) Fired when the client has updated one or more items in the view.

This event is fired only if the application has attached at least one handler to the event. Otherwise, simply overriding [OnDataUpdated](#ondataupdated) won't work.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) ItemCheck

[ItemCheckEventHandler](https://docs.wisej.com/api/wisej.web/lists-and-grids/checkedlistbox/wisej.web.itemcheckeventhandler) Fired when the check state of an item changes.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) ItemChecked

[ItemCheckedEventHandler](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.itemcheckedeventhandler) Fired when the checked state of an item changes.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) ItemClick

[ItemClickEventHandler](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.itemclickeventhandler) Fired when the item is clicked or tapped.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) ItemDoubleClick

[ItemClickEventHandler](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.itemclickeventhandler) Fired when the item is double clicked or tapped.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) ItemDrag

[ListViewItemDragEventHandler](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.listviewitemdrageventhandler) Fired when the user begins dragging a [ListViewItem](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.listviewitem).

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) ItemMouseHover

[ItemMouseHoverEventHandler](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.itemmousehovereventhandler) Fired when the pointer hovers over an item.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) ItemMouseLeave

[ItemMouseHoverEventHandler](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.itemmousehovereventhandler) Fired when the pointer leaves an item.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) ItemSelectionChanged

[ItemSelectionChangedEventHandler](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.itemselectionchangedeventhandler) Fired when the selection state of an item changes.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) RetrieveVirtualItem

[RetrieveVirtualItemEventHandler](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.retrievevirtualitemeventhandler) Fired when the [ListView](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview) is in virtual mode and requires a [ListViewItem](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.listviewitem).

**Throws:**

* [InvalidOperationException](https://docs.microsoft.com/dotnet/api/system.invalidoperationexception)\
  The [Item](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.retrievevirtualitemeventargs#item) property is not set to an item when the [RetrieveVirtualItem](#retrievevirtualitem) event is handled.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) Scroll

[ScrollEventHandler](https://docs.wisej.com/api/wisej.web/content/scrollbar/wisej.web.scrolleventhandler) Fired when the user or code scrolls the [ListView](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview).

This event fires only if there is an handler attached to it. A simple overload of the On\[Event] method in a derived class will not be invoked unless there is at least one handler attached to the event.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) SearchForVirtualItem

[SearchForVirtualItemEventHandler](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.searchforvirtualitemeventhandler) Fired when the [ListView](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview) is in virtual mode and a search is requested.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) SelectedIndexChanged

[EventHandler](https://docs.microsoft.com/dotnet/api/system.eventhandler) Fired when the [SelectedIndices](#selectedindices) collection changes.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) ToolClick

[ToolClickEventHandler](https://docs.wisej.com/api/wisej.web/editors/wisej.web.toolclickeventhandler) Fired when a [ComponentTool](https://docs.wisej.com/api/wisej.web/editors/wisej.web.componenttool) is clicked.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) VirtualItemsSelectionRangeChanged

[ListViewVirtualItemsSelectionRangeChangedEventHandler](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.listviewvirtualitemsselectionrangechangedeventhandler) Fired when a [ListView](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview) is in virtual mode and the selection state of a range of items has changed.

## Implements

| Name                                                                                                 | Description                                                                                                                              |
| ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- |
| [IUserData](https://docs.wisej.com/api/wisej.web/interfaces/wisej.web.iuserdata)                     | Provides access to the `UserData` and `Tag` properties associated to the component implementing this interface.                          |
| [IBindableComponent](https://docs.wisej.com/api/wisej.web/data-binding/wisej.web.ibindablecomponent) | Bindable components implement this interface.                                                                                            |
| [IDropTarget](https://docs.wisej.com/api/wisej.web/interfaces/wisej.web.idroptarget)                 | Controls that support drag & drop operations implement this interface.                                                                   |
| [IWisejComponent](https://docs.wisej.com/api/wisej.core/interfaces/wisej.core.iwisejcomponent)       | All wisej components implement this interface.                                                                                           |
| [IWisejControl](https://docs.wisej.com/api/wisej.core/interfaces/wisej.core.iwisejcontrol)           | All wisej controls derived from the [Control](https://docs.wisej.com/api/wisej.web/general/control) class must implement this interface. |
| [IWisejDataStore](https://docs.wisej.com/api/wisej.core/interfaces/wisej.core.iwisejdatastore)       | All wisej data stores implement this interface.                                                                                          |
| [IWisejSerializable](https://docs.wisej.com/api/wisej.core/interfaces/wisej.core.iwisejserializable) | Allows an object to serialize itself.                                                                                                    |
