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.
- C#
- VB.NET
public class ListViewComboBox : UserComboBox
Public Class ListViewComboBox
Inherits UserComboBox
Constructors
ListViewComboBox()
Initializes a new ListViewComboBox control.
Properties
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.
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.
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:
- ArgumentException The assigned value does not implement the IList or IListSource interfaces.
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 ("").
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 ("").
ItemHeight
Int32: If set, specifies a universal height for all ListView items. (Default: -1)
Items
ListViewItemCollection: Returns a collection containing all items in the control.
Value: A ListViewItemCollection that contains all the items in the ListView control.
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.
ListView
ListView: Returns the ListView control associated with this ListViewComboBox.
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.
SelectedItem
ListViewItem: Returns or sets the selected ListViewItem in the drop down ListView control. (Default: null)
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.
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.
Text
String: Returns or sets the text associated with this control. (Default: "")
Value: The text associated with this control.
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
| Name | Description |
|---|---|
| IUserData | Provides access to the UserData and Tag properties associated to the component implementing this interface. |
| IBindableComponent | Bindable components implement this interface. |
| IDropTarget | Controls that support drag & drop operations implement this interface. |
| ILabel | Provides access to the LabelWrapper associated with the controls that implement this interface. |
| IReadOnly | Provides access to the ReadOnly property for coontrols that support the read-only mode. |
| IModified | Provides access to the Modified property and ModifiedChanged event for controls that implement this interface. |
| IValidation | Provides access to the validation events and properties property for controls that support validation. |
| IWisejComponent | All wisej components implement this interface. |
| IWisejControl | All wisej controls derived from the Control class must implement this interface. |
| IWisejSerializable | Allows an object to serialize itself. |