ListView Control Members
See Also

Suite Pro Controls ActiveX Control v24.0
ListView Control Members
Public Methods
| Method | Description |
|---|---|
AboutBox |
Displays the about box for the control. |
EnableExplorerStyle |
When using Windows Vista or Windows 7, specifies that the control will use the Win7/Vista explorer style. |
FindItem |
Finds and returns a reference to a ListViewItem object in a ListView control. |
GetFirstVisible |
Returns a reference to the first ListViewItem object visible in the internal area of a ListView control. |
GetNextSelectedItem |
Gets the index of the next selected ListViewItem in relation to FirstItem. |
HitTest |
Returns a reference to the ListViewItem object located at the coordinates of x and y. |
OLEDrag |
Causes a component to initiate an OLE drag/drop operation. |
SetIconSize |
The SetIconSize method is used to set the icon size of the node items. |
StartLabelEdit |
Enables a user to edit a label. |
Public Properties
| Property | Description |
|---|---|
AllowColumnReorder |
Gets or sets a value indicating whether the user can drag column headers to reorder columns in the control. |
Appearance |
Gets or sets the paint style of the control. |
Arrange |
Determines how the icons in the ListView control's Icon or SmallIcon view are arranged. |
BackColor |
Gets or sets the background color. |
Checkboxes |
Gets or sets a value indicating whether a check box appears next to each item in the control. |
ColumnHeaderIcons |
Gets or sets the icons to be used for ListViewItems in the ListView control. |
ColumnHeaders |
Gets the collection of all column headers that appear in the control. |
ControlToolTip |
Gets or sets the tool tip that is displayed when the mouse cursor is positioned over this item. |
DropHighlight |
Gets or sets the ListViewItem object that is highlighted with the system highlight color when the cursor moves over it. |
Enabled |
Gets or sets a value indicating whether the control can respond to user interaction. |
EnableMarqueeSelection |
Enables or disables Marquee selection of rows. |
FlatScrollBar |
Gets or sets whether a flat scrollbar is used. |
Font |
Gets or sets the font of the text displayed by the control. |
ForeColor |
Gets or sets the foreground color. |
FullRowSelect |
Gets or sets a value indicating whether clicking an item selects all its subitems. |
GridLines |
Gets or sets a value indicating whether grid lines appear between the rows and columns containing the items and subitems in the control. |
HideColumnHeaders |
Returns or sets whether ColumnHeader objects in a ListView control are hidden in Report view. |
HideSelection |
Gets or sets a value indicating whether the selected item in the control remains highlighted when the control loses focus. |
HotTracking |
Gets or sets a value indicating whether the text of an item or subitem has the appearance of a hyperlink when the mouse pointer passes over it. |
HoverSelection |
Gets or sets a value indicating whether an item is automatically selected when the mouse pointer remains over the item for a few seconds. |
hWnd |
Gets the window handle that the control is bound to. |
Icons |
Gets or sets the icons to be used for ListViewItems in the ListView control. |
IconSize |
Gets or sets the size of icons displayed for ListViewItem objects. |
LabelEdit |
Gets or sets a value indicating whether the user can edit the labels of items in the control. |
LabelWrap |
Returns or sets a value that determines whether or not labels are wrapped when a ListView control is in Icon view. |
ListItems |
Returns a reference to a collection of ListViewItem objects in a ListView control. |
LockRedraw |
The LockRedraw property is used to lock or unlock ListView re-drawing. |
MultiSelect |
Gets a value indicating whether multiple items can be selected. |
OLEDragMode |
Returns or sets whether the component or the programmer handles an OLE drag/drop operation. |
OLEDropMode |
Returns or sets how a target component handles drop operations. |
ReCreateReparented |
|
RightToLeft |
Gets or sets a value indicating whether control's elements are aligned to support locales using right-to-left fonts. |
SelectedCount |
Gets the number of currently selected items. |
SelectedItem |
Returns a reference to a selected ListViewItem object. |
ShowBorder |
Specifies whether to display a border around the edge of the control. |
ShowSortArrow |
Specifies whether to show a sort arrow in the list view header. |
Sorted |
Returns or sets a value that determines whether the ListViewItem objects in a ListView control are sorted. |
SortKey |
Returns or sets a value that determines how the ListViewItem objects in a ListView control are sorted. |
SortOrder |
Returns or sets a value that determines whether the ListViewItem objects in a ListView control are sorted in ascending or descending order. |
ToolTipContext |
The ToolTipContext object represents the tool tip window that is used to display tool tips. |
UpdateBackColorOnAppearanceChange |
|
UpdateForeColorOnAppearanceChange |
|
UseVisualStyle |
Determines if the control is drawn using visual styles/SkinFramework, if supported. |
View |
Gets or sets how items are displayed in the control. |
Events
| Event | Description |
|---|---|
AfterLabelEdit |
Occurs when the label for an item is edited by the user. |
BeforeLabelEdit |
Occurs when the user starts editing the label of an item. |
ColumnClick |
Occurs when the user clicks a column header within the list view control. |
DblClick |
Occurs when a ListViewItem in the ListView control is double-clicked. |
ItemCheck |
Occurs when the check state of an item changes. |
ItemClick |
Occurs when a ListViewItem object in a ListView control is clicked. |
KeyDown |
Occurs when a key is pressed while the control has focus. |
KeyPress |
Occurs when a key is pressed while the control has focus. |
KeyUp |
Occurs when a key is released while the control has focus. |
MouseDown |
Occurs when the mouse pointer is over the control and a mouse button is pressed. |
MouseMove |
Occurs when the mouse pointer is moved over the control. |
MouseUp |
Occurs when the mouse pointer is over the control and a mouse button is released. |
OLECompleteDrag |
Occurs when a source component is dropped onto a target component, informing the source component that a drag action was either performed or canceled. |
OLEDragDrop |
Occurs when a source component is dropped onto a target component when the source component determines that a drop can occur. |
OLEDragOver |
Occurs when one component is dragged over another. |
OLEGiveFeedback |
Occurs after every OLEDragOver event. OLEGiveFeedback allows the source control to provide visual feedback to the user. |
OLESetData |
Occurs on a source component when a target component performs the GetData method on the source’s DataObject object. |
OLEStartDrag |
Occurs when a component's OLEDrag method is performed, or when a component initiates an OLE drag/drop operation when the OLEDragMode property is set to Automatic. |
See Also
Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.


