ListView Class

Allows you to display a collection of items in a multi column format.  Header text can be included at the top of a column along with the ability to specify the width and horizontal alignment of each column.

Namespace: elsystem.windows.forms

Properties

   Additional properties, methods, and events are described in the classes listed under Inheritance Hierarchy (see below).

  Name Type Description
Public property BorderStyle object Gets or sets the style of the control border. See BordeStyle for a list of values.
Public property ColumnsCount int Gets the number of columns in the control.
Public property Columns object Gets the collection of all columns that appear in the control. See ColumnHeaderCollection.
Public property FullRowSelect bool True if clicking an item selects all its subitems.
Public property HideSelection bool True if the selected item does not remain highlighted when the control loses focus.
Public property Items object Gets all items in the control as a Vector object.
Public property MaximumRowNumber int Gets or sets the maximum number of rows displayed on a single page in the control before scrolling occurs.
Public property MultiSelect bool True if the user can select more than one cell, row, or column at a time.
Public property RowsCount int Gets the total number of rows included in the control.
Public property SelectedIndices object Gets the indexes of the selected items in the control.
Public property SelectedItems object Gets the items that are selected in the control as a Vector object.
Public property Sorting object Gets or sets the sort order for items in the control. See SortOrder for a list of values.

   Additional properties, methods, and events are described in the classes listed under Inheritance Hierarchy (see below).

Methods
  Name Description
Public property AddColumns(string) Add columns using a list of string titles.
Public property AddColumns(object) Add columns using a list of ColumnHeader objects.
Public property AddRow(ListViewItem) Add row using a ListViewItem (object).
Public property AddRow(Object) Add row using a list of Objects (object).
Public property Clear() Removes all rows from the control.
Public property Create() Initializes a new instance of a ListView.  
Public property Create(width,height) Initializes a new instance of a ListView.  Parameters include integer values for the Width and Height of the control.
Public property DeleteRow(index) Removes the specified row (0 based index) from the control.
Public property EnsureVisible  
Public property FindItemWithText(text) First ListViewItem that begins with the specified text value.
Public property InsertRow(index, items) Inserts a row at index with items.
Public property RemoveGradient Removes the gradient.
Public property SetLinearGradient(mode, startColor, endColor) Creates a linear gradient listview background. See LinearGradientMode and Color for lists of possible values.
Public property SetRadialGradient(startColor, endColor) Creates a radial gradient listview background. See Color for a list of possible values.
Events
  Name Description
Public event

SelectedIndexChanged

Occurs when a listview item is selected or changed. See EventArgs for the properties returned by the handler's args parameter.