# ListViewItem

Namespace: **Wisej.Web**

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

Represents an item in a [ListView](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview) control.

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

```csharp
public class ListViewItem : ICloneable, IDisposable, IHasPropertyStore, IImage, IUserData
```

{% endtab %}

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

```visual-basic
Public Class ListViewItem
    Inherits ICloneable
    Implements IDisposable, IHasPropertyStore, IImage, IUserData
```

{% 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) ListViewItem()

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

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

Initializes a new instance of the [ListViewItem](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.listviewitem) class with the specified item text.

| Name     | Type                                                          | Description                       |
| -------- | ------------------------------------------------------------- | --------------------------------- |
| **text** | [String](https://docs.microsoft.com/dotnet/api/system.string) | The text to display for the 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) ListViewItem(items)

Initializes a new instance of the [ListViewItem](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.listviewitem) class with an array of strings representing sub-items.

| Name      | Type                                                              | Description                                                       |
| --------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- |
| **items** | [String\[\]](https://docs.microsoft.com/dotnet/api/system.string) | An array of strings that represent the sub-items of the new 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) ListViewItem(text, imageIndex)

Initializes a new instance of the [ListViewItem](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.listviewitem) class with the specified item text and the image index position of the item's icon.

| Name           | Type                                                          | Description                                                                                                                                                                                                                            |
| -------------- | ------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **text**       | [String](https://docs.microsoft.com/dotnet/api/system.string) | The text to display for the item.                                                                                                                                                                                                      |
| **imageIndex** | [Int32](https://docs.microsoft.com/dotnet/api/system.int32)   | The zero-based index of the image within the [ImageList](https://docs.wisej.com/api/wisej.web/content/imagelist) associated with the [ListView](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview) that contains the 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) ListViewItem(items, imageIndex)

Initializes a new instance of the [ListViewItem](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.listviewitem) class with the image index position of the item's icon and an array of strings representing sub-items.

| Name           | Type                                                              | Description                                                                                                                                                                                                                            |
| -------------- | ----------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **items**      | [String\[\]](https://docs.microsoft.com/dotnet/api/system.string) | An array of strings that represent the sub-items of the new item.                                                                                                                                                                      |
| **imageIndex** | [Int32](https://docs.microsoft.com/dotnet/api/system.int32)       | The zero-based index of the image within the [ImageList](https://docs.wisej.com/api/wisej.web/content/imagelist) associated with the [ListView](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview) that contains the 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) ListViewItem(items, imageIndex, foreColor, backColor, font)

Initializes a new instance of the [ListViewItem](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.listviewitem) class with the image index position of the item's icon; the foreground color, background color, and font of the item; and an array of strings representing sub-items.

| Name           | Type                                                                | Description                                                                                                                                                                                                                            |
| -------------- | ------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **items**      | [String\[\]](https://docs.microsoft.com/dotnet/api/system.string)   | An array of strings that represent the sub-items of the new item.                                                                                                                                                                      |
| **imageIndex** | [Int32](https://docs.microsoft.com/dotnet/api/system.int32)         | The zero-based index of the image within the [ImageList](https://docs.wisej.com/api/wisej.web/content/imagelist) associated with the [ListView](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview) that contains the item. |
| **foreColor**  | [Color](https://docs.microsoft.com/dotnet/api/system.drawing.color) | A [Color](https://docs.microsoft.com/dotnet/api/system.drawing.color) that represents the foreground color of the item.                                                                                                                |
| **backColor**  | [Color](https://docs.microsoft.com/dotnet/api/system.drawing.color) | A [Color](https://docs.microsoft.com/dotnet/api/system.drawing.color) that represents the background color of the item.                                                                                                                |
| **font**       | [Font](https://docs.microsoft.com/dotnet/api/system.drawing.font)   | A [Font](#font) that represents the font to display the item's text in.                                                                                                                                                                |

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

Initializes a new instance of the [ListViewItem](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.listviewitem) class with the image index position of the item's icon and an array of [ListViewSubItem](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.listviewitem.listviewsubitem) objects.

| Name           | Type                                                                                                                        | Description                                                                                                                                                                                                                            |
| -------------- | --------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **subItems**   | [ListViewSubItem\[\]](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.listviewitem.listviewsubitem) | An array of type [ListViewSubItem](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.listviewitem.listviewsubitem) that represents the sub-items of the item.                                                    |
| **imageIndex** | [Int32](https://docs.microsoft.com/dotnet/api/system.int32)                                                                 | The zero-based index of the image within the [ImageList](https://docs.wisej.com/api/wisej.web/content/imagelist) associated with the [ListView](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview) that contains the 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) ListViewItem(text, imageKey)

Initializes a new instance of the [ListViewItem](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.listviewitem) class with the specified text and image.

| Name         | Type                                                          | Description                                                                                                                                                                                                                                                              |
| ------------ | ------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **text**     | [String](https://docs.microsoft.com/dotnet/api/system.string) | The text to display for the item. This should not exceed 259 characters.                                                                                                                                                                                                 |
| **imageKey** | [String](https://docs.microsoft.com/dotnet/api/system.string) | The name of the image within the [ImageList](#imagelist) of the owning [ListView](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview) to display in the [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) ListViewItem(items, imageKey)

Initializes a new instance of the [ListViewItem](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.listviewitem) class with the specified item and sub-item text and image.

| Name         | Type                                                              | Description                                                                                                                                                                                                                                                              |
| ------------ | ----------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **items**    | [String\[\]](https://docs.microsoft.com/dotnet/api/system.string) | An array containing the text of the sub-items of the [ListViewItem](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.listviewitem).                                                                                                               |
| **imageKey** | [String](https://docs.microsoft.com/dotnet/api/system.string)     | The name of the image within the [ImageList](#imagelist) of the owning [ListView](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview) to display in the [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) ListViewItem(items, imageKey, foreColor, backColor, font)

Initializes a new instance of the [ListViewItem](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.listviewitem) class with the sub-items containing the specified text, image, colors, and font.

| Name          | Type                                                                | Description                                                                                                                                                                |
| ------------- | ------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **items**     | [String\[\]](https://docs.microsoft.com/dotnet/api/system.string)   | An array of strings that represent the text of the sub-items for the [ListViewItem](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.listviewitem). |
| **imageKey**  | [String](https://docs.microsoft.com/dotnet/api/system.string)       | The name of the image within the [ImageList](#imagelist) of the owning [ListView](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview) to display in the item.   |
| **foreColor** | [Color](https://docs.microsoft.com/dotnet/api/system.drawing.color) | A [Color](https://docs.microsoft.com/dotnet/api/system.drawing.color) that represents the foreground color of the item.                                                    |
| **backColor** | [Color](https://docs.microsoft.com/dotnet/api/system.drawing.color) | A [Color](https://docs.microsoft.com/dotnet/api/system.drawing.color) that represents the background color of the item.                                                    |
| **font**      | [Font](https://docs.microsoft.com/dotnet/api/system.drawing.font)   | A [Font](#font) to apply to the item text.                                                                                                                                 |

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

Initializes a new instance of the [ListViewItem](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.listviewitem) class with the specified sub-items and image.

| Name         | Type                                                                                                                        | Description                                                                                                                                                                                                                                                              |
| ------------ | --------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **subItems** | [ListViewSubItem\[\]](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.listviewitem.listviewsubitem) | An array of [ListViewSubItem](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.listviewitem.listviewsubitem) objects.                                                                                                                             |
| **imageKey** | [String](https://docs.microsoft.com/dotnet/api/system.string)                                                               | The name of the image within the [ImageList](#imagelist) of the owning [ListView](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview) to display in the [ListViewItem](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.listviewitem). |

## 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) AllowHtml

[Boolean](https://docs.microsoft.com/dotnet/api/system.boolean): Returns or sets a value indicating that the item can display HTML text. (Default: `False`)

When AllowHtml is set to true, the text in the item can contain HTML content. If the text contains new lines (CRLF) but doesn't contain HTML elements (at least one "<") all CRLF are automatically substituted with "\<br/>".

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

[Color](https://docs.microsoft.com/dotnet/api/system.drawing.color): Returns or sets the background color of 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) Checked

[Boolean](https://docs.microsoft.com/dotnet/api/system.boolean): Returns or sets whether the item is checked. (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) ColSpan

[Int32](https://docs.microsoft.com/dotnet/api/system.int32): Returns or sets the number of columns that this item can use to render its content when the [ListView](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview) is in [Details](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.view#fields) mode. (Default: `1`)

**Throws:**

* [ArgumentOutOfRangeException](https://docs.microsoft.com/dotnet/api/system.argumentoutofrangeexception)\
  The value is lower than 1 or greater than 100.

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

[ContextMenu](https://docs.wisej.com/api/wisej.web/menus/wisej.web.contextmenu): Returns or sets the shortcut menu associated with the item. (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) Control

[Control](https://docs.wisej.com/api/wisej.web/general/control): Returns or sets a child control to display inside the 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) DataBoundItem

[Object](https://docs.microsoft.com/dotnet/api/system.object): Returns the data-bound object for this [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) Focused

[Boolean](https://docs.microsoft.com/dotnet/api/system.boolean): Return or sets whether the item has the focus within the [ListView](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview) parent.

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

[Font](https://docs.microsoft.com/dotnet/api/system.drawing.font): Returns or sets the font of the text displayed by 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) ForeColor

[Color](https://docs.microsoft.com/dotnet/api/system.drawing.color): Returns or sets the foreground color of 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) HasUserData

[Boolean](https://docs.microsoft.com/dotnet/api/system.boolean): Checks if the [UserData](#userdata) dynamic object was created and has any 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) Image

[Image](https://docs.microsoft.com/dotnet/api/system.drawing.image): Returns or sets the image that is displayed on 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) ImageIndex

[Int32](https://docs.microsoft.com/dotnet/api/system.int32): Returns or sets the image list index value of the image displayed in the [ListViewItem](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.listviewitem). (Default: `-1`)

**Throws:**

* [ArgumentOutOfRangeException](https://docs.microsoft.com/dotnet/api/system.argumentoutofrangeexception)\
  The specified index is less than -1.

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

[String](https://docs.microsoft.com/dotnet/api/system.string): Returns or sets the key accessor for the image in the [ImageList](https://docs.wisej.com/api/buttons/wisej.web.buttonbase#imagelist). (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) ImageList

[ImageList](https://docs.wisej.com/api/wisej.web/content/imagelist): Returns the [ImageList](https://docs.wisej.com/api/wisej.web/content/imagelist) that contains the images displayed in the [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) ImageSource

[String](https://docs.microsoft.com/dotnet/api/system.string): Returns or sets the theme name or URL for the image to display in the [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) Index

[Int32](https://docs.microsoft.com/dotnet/api/system.int32): Returns the zero-based index of the item within the [ListView](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview) 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) IsDataBound

[Boolean](https://docs.microsoft.com/dotnet/api/system.boolean): Returns whether the [ListViewItem](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.listviewitem) is data bound.

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

[Boolean](https://docs.microsoft.com/dotnet/api/system.boolean): Returns a value indicating whether the tree node is in an editable state.

### ![](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

[ListView](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview): Returns the [ListView](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview) control that contains the 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) Name

[String](https://docs.microsoft.com/dotnet/api/system.string): Returns or sets the name associated with this 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) RowHeight

[Int32](https://docs.microsoft.com/dotnet/api/system.int32): Returns or sets the height of the row corresponding to this item when in [Details](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.view#fields) view.

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

[Int32](https://docs.microsoft.com/dotnet/api/system.int32): Returns or sets the number of rows that this item can use to render its content when the [ListView](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview) is in [Details](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.view#fields) mode. (Default: `1`)

**Throws:**

* [ArgumentOutOfRangeException](https://docs.microsoft.com/dotnet/api/system.argumentoutofrangeexception)\
  The value is lower than 1 or greater than 100.

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

[Boolean](https://docs.microsoft.com/dotnet/api/system.boolean): Returns or sets whether the item is selected.

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

[Int32](https://docs.microsoft.com/dotnet/api/system.int32): Returns or sets the image list index value of the state icon displayed in the [ListViewItem](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.listviewitem). (Default: `-1`)

**Throws:**

* [ArgumentOutOfRangeException](https://docs.microsoft.com/dotnet/api/system.argumentoutofrangeexception)\
  The specified index is less than -1.

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

[String](https://docs.microsoft.com/dotnet/api/system.string): Returns or sets the key for the state icon displayed in the [ImageList](https://docs.wisej.com/api/buttons/wisej.web.buttonbase#imagelist). (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) StateImageList

[ImageList](https://docs.wisej.com/api/wisej.web/content/imagelist): Returns the [ImageList](https://docs.wisej.com/api/wisej.web/content/imagelist) that contains the state images displayed in the [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) StateImageSource

[String](https://docs.microsoft.com/dotnet/api/system.string): Returns or sets the theme name or URL for the state icon to display in the [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) SubItems

[ListViewSubItemCollection](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.listviewitem.listviewsubitemcollection): Returns a collection containing all sub items.

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

[Object](https://docs.microsoft.com/dotnet/api/system.object): Returns or sets an object that contains data to associate with the item. (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) Text

[String](https://docs.microsoft.com/dotnet/api/system.string): Returns or sets the text of the item. (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) ToolTipText

[String](https://docs.microsoft.com/dotnet/api/system.string): Returns or sets the text shown when the mouse pointer rests on the [ListViewItem](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.listviewitem). (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) UserData

[Object](https://docs.microsoft.com/dotnet/api/system.object): Returns a dynamic object that can be used to store custom data in relation to this 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) Visible

[Boolean](https://docs.microsoft.com/dotnet/api/system.boolean): Returns or sets whether the item 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) BeginEdit()

Places the item in edit mode.

**Throws:**

* [InvalidOperationException](https://docs.microsoft.com/dotnet/api/system.invalidoperationexception)\
  The [LabelEdit](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/..#labeledit) property of the associated [ListView](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview) is not set to 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) Clone()

Creates an identical copy of the item.

**Returns:** [Object](https://docs.microsoft.com/dotnet/api/system.object). An object that represents an item that has the same text, image, and sub-items associated with it as the cloned 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) Dispose()

Releases all resources used by the [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-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) Dispose(disposing)

Releases the resources used by the [ListViewItem](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.listviewitem).

| 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) EnsureVisible()

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

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

Destructor dispose pattern.

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

Removes the item from its associated [ListView](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview) control.

## 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. |
| [IImage](https://docs.wisej.com/api/wisej.web/interfaces/wisej.web.iimage)       | Provides access to common image properties across the controls that implement this interface.                   |
