Skip to main content
Version: 4.1

ListViewComboBox

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.1.0.0)

The TreeViewComboBox control represents a UserComboBox control with a ListView as the drop down panel.

public class ListViewComboBox : UserComboBox

Constructors​

Instance member ListViewComboBox()​

Initializes a new ListViewComboBox control.

Properties​

Instance member Columns​

ColumnHeaderCollection: Returns the collection of all column headers that appear in the control.

Value: A ColumnHeaderCollection that represents the column headers that appear when the View property is set to Details.

Instance member DataMember​

String: Returns or sets the name of the list or table in the data source for which the ListView is displaying data. (Default: "")

Value: The name of the table or list in the DataSource for which the ListView is displaying data. The default is Empty.

Instance member DataSource​

Object: Returns or sets the data source for this ListView. (Default: null)

Value: An object that implements the IList or IListSource interfaces, such as a DataSet or an Array. The default is null.

Throws:

Instance member DisplayMember​

String: Returns or sets the property to display in the Items. (Default: "")

Value: A String specifying the name of an object property that is contained in the collection specified by the DataSource property. The default is an empty string ("").

Instance member IconMember​

String: Returns or sets the property to use as the icon for the Items. (Default: "")

Value: A String specifying the name of an object property that is contained in the collection specified by the DataSource property. The default is an empty string ("").

Instance member ItemHeight​

Int32: If set, specifies a universal height for all ListView items. (Default: -1)

Instance member Items​

ListViewItemCollection: Returns a collection containing all items in the control.

Value: A ListViewItemCollection that contains all the items in the ListView control.

Instance member LargeImageList​

ImageList: Returns or sets the ImageList to use to display the main icon in the ListViewItem elements. (Default: null)

Value: An ImageList that contains the icons to use when the View property is set to LargeIcon. The default is null.

Instance member ListView​

ListView: Returns the ListView control associated with this ListViewComboBox.

Instance member SelectedIndex​

Int32: Returns or sets the index of the currently selected item. (Default: -1)

Value: A zero-based index of the currently selected item. -1 if no item is selected.

Throws:

  • 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 SelectedItem​

ListViewItem: Returns or sets the selected ListViewItem in the drop down ListView control. (Default: null)

Instance member SelectedValue​

Object: Returns or sets the selected value in the DataSource corresponding to the current item. It is always null when the control is not data bound.

This property returns the DataBoundItem for the currently SelectedItem and sets the current position in the DataSource to the index of the value found un the DataSource.

Instance member SmallImageList​

ImageList: Returns or sets the ImageList to use to display the main icon in the ListViewItem elements. (Default: null)

Value: An ImageList that contains the icons to use when the View property is set to SmallIcon. The default is null.

Instance member Text​

String: Returns or sets the text associated with this control. (Default: "")

Value: The text associated with this control.

Instance member View​

View: Returns or sets how items are displayed in the control. (Default: Details)

Value: One of the View values. The default is LargeIcon.

Implements​

NameDescription
IUserDataProvides access to the UserData and Tag properties associated to the component implementing this interface.
IBindableComponentBindable components implement this interface.
IDropTargetControls that support drag & drop operations implement this interface.
ILabelProvides access to the LabelWrapper associated with the controls that implement this interface.
IReadOnlyProvides access to the ReadOnly property for coontrols that support the read-only mode.
IModifiedProvides access to the Modified property and ModifiedChanged event for controls that implement this interface.
IValidationProvides access to the validation events and properties property for controls that support validation.
IWisejComponentAll wisej components implement this interface.
IWisejControlAll wisej controls derived from the Control class must implement this interface.
IWisejSerializableAllows an object to serialize itself.