# ListViewComboBox

URL: https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.listviewcombobox

Version: 4.1
Namespace: **Wisej.Web**

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

- Control
- ListControl
- ComboBox
- [UserComboBox](/api/wisej.web/lists-and-grids/wisej.web.usercombobox)
- [ListViewComboBox](/api/wisej.web/lists-and-grids/wisej.web.listviewcombobox)
The TreeViewComboBox control represents a [UserComboBox](/api/wisej.web/lists-and-grids/wisej.web.usercombobox) control with aListView as the drop down panel.

- C# - VB.NET

```csharp
public class ListViewComboBox : UserComboBox
```

```visual
Public Class ListViewComboBox
    Inherits UserComboBox
```

## Constructors

### ![Instance member](/img/api/instance.png) ListViewComboBox()

Initializes a new ListViewComboBox control.

## Properties

### ![Instance member](/img/api/instance.png) Columns

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

### ![Instance member](/img/api/instance.png) 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](/api/wisej.web/lists-and-grids/wisej.web.listviewcombobox#listview) is displaying data. (Default: `""` )

### ![Instance member](/img/api/instance.png) DataSource

[Object](https://docs.microsoft.com/dotnet/api/system.object) : Returns or sets the data source for this [ListView](/api/wisej.web/lists-and-grids/wisej.web.listviewcombobox#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.

### ![Instance member](/img/api/instance.png) DisplayMember

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

### ![Instance member](/img/api/instance.png) IconMember

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

### ![Instance member](/img/api/instance.png) ItemHeight

[Int32](https://docs.microsoft.com/dotnet/api/system.int32) : If set, specifies a universal height for all [ListView](/api/wisej.web/lists-and-grids/wisej.web.listviewcombobox#listview) items. (Default: `-1` )

### ![Instance member](/img/api/instance.png) Items

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

### ![Instance member](/img/api/instance.png) LargeImageList

ImageList : Returns or sets theImageList to use to display the main icon in the [ListViewItem](/api/wisej.web/lists-and-grids/listview/wisej.web.listviewitem) elements. (Default: `null` )

### ![Instance member](/img/api/instance.png) ListView

ListView : Returns theListView control associated with this [ListViewComboBox](/api/wisej.web/lists-and-grids/wisej.web.listviewcombobox) .

### ![Instance member](/img/api/instance.png) SelectedIndex

[Int32](https://docs.microsoft.com/dotnet/api/system.int32) : Returns or sets the index of the currently selected item. (Default: `-1` )

**Throws:**

- [ArgumentOutOfRangeException](https://docs.microsoft.com/dotnet/api/system.argumentoutofrangeexception) The specified index is less than -1; o the specified index is greater than the number of items in the combo box.

### ![Instance member](/img/api/instance.png) SelectedItem

[ListViewItem](/api/wisej.web/lists-and-grids/listview/wisej.web.listviewitem) : Returns or sets the selected [ListViewItem](/api/wisej.web/lists-and-grids/listview/wisej.web.listviewitem) in the drop downListView control. (Default: `null` )

### ![Instance member](/img/api/instance.png) SelectedValue

[Object](https://docs.microsoft.com/dotnet/api/system.object) : Returns or sets the selected value in the [DataSource](/api/wisej.web/lists-and-grids/wisej.web.listviewcombobox#datasource) corresponding to the current item. It is always null when the control is not data bound.

This property returns the [DataBoundItem](/api/wisej.web/lists-and-grids/listview/wisej.web.listviewitem#databounditem) for the currently [SelectedItem](/api/wisej.web/lists-and-grids/wisej.web.listviewcombobox#selecteditem) and sets the current position in the [DataSource](/api/wisej.web/lists-and-grids/wisej.web.listviewcombobox#datasource) to the index of the value found un the [DataSource](/api/wisej.web/lists-and-grids/wisej.web.listviewcombobox#datasource) .

### ![Instance member](/img/api/instance.png) SmallImageList

ImageList : Returns or sets theImageList to use to display the main icon in the [ListViewItem](/api/wisej.web/lists-and-grids/listview/wisej.web.listviewitem) elements. (Default: `null` )

### ![Instance member](/img/api/instance.png) Text

[String](https://docs.microsoft.com/dotnet/api/system.string) : Returns or sets the text associated with this control. (Default: `""` )

### ![Instance member](/img/api/instance.png) View

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

## Implements

| Name | Description | [IUserData](/api/wisej.web/interfaces/wisej.web.iuserdata) | Provides access to the `UserData` and `Tag` properties associated to the component implementing this interface. | [IBindableComponent](/api/wisej.web/data-binding/wisej.web.ibindablecomponent) | Bindable components implement this interface. | [IDropTarget](/api/wisej.web/interfaces/wisej.web.idroptarget) | Controls that support drag & drop operations implement this interface. | [ILabel](/api/wisej.web/interfaces/wisej.web.ilabel) | Provides access to the [LabelWrapper](/api/wisej.web/editors/wisej.web.labelwrapper) associated with the controls that implement this interface. | [IReadOnly](/api/wisej.web/interfaces/wisej.web.ireadonly) | Provides access to the [ReadOnly](/api/wisej.web/interfaces/wisej.web.ireadonly#readonly) property for coontrols that support the read-only mode. | [IModified](/api/wisej.web/interfaces/wisej.web.imodified) | Provides access to the [Modified](/api/wisej.web/interfaces/wisej.web.imodified#modified) property and [ModifiedChanged](/api/wisej.web/interfaces/wisej.web.imodified#modifiedchanged) event for controls that implement this interface. | [IValidation](/api/wisej.web/interfaces/wisej.web.ivalidation) | Provides access to the validation events and properties property for controls that support validation. | [IWisejComponent](/api/wisej.core/interfaces/wisej.core.iwisejcomponent) | All wisej components implement this interface. | [IWisejControl](/api/wisej.core/interfaces/wisej.core.iwisejcontrol) | All wisej controls derived from theControl class must implement this interface. | [IWisejSerializable](/api/wisej.core/interfaces/wisej.core.iwisejserializable) | Allows an object to serialize itself.
