This control wraps the ubiquitous and multifunctional Win32 ListView common control. You will be very familiar with this from the Windows Explorer icon, list, and details views.
To choose the general appearance of the control, you can use the
View property, switching between two icon views
View.SmallIcon), the basic
View.List and the
To control what is actually displayed in the list, you can add or
ListViewItem objects from the
Items list. See the
ListViewItem class for more information about
In all views, you can choose the item
ItemActivation for more details).
You can also determine whether
next to the items. To find out which items are checked, you can refer
CheckedItems properties. Similarly, the selected
items can be retrieved through the
SelectedItems properties. The item that
currently has the focus can be obtained through the
FocusedItem property. You can enable or disable
multiple selection with the
Items can be selected automatically just by hovering over them. The
HoverSelection property controls this.
By default, the selection will not be rendered (but still maintained)
when the control loses the focus. You can set
HideSelection to false if you want the selection
to be visible all the time.
Items can be sorted in the list by calling the
Sort() method. To specify how the items should be sorted ...