ListView

Navigation:  Appendices > Windows Refresher > Common Controls >

ListView

Previous pageReturn to chapter overviewNext page

The ListView was added to the standard Windows controls with the release of Windows 95. It resembles the ListBox in the fact that it presents a list of elements. However, in a ListView, each entry can be split into many columns each containing additonal information, and the list of elements can be sorted according to the criteria of each column.

 

 

Specific to the ListView :

 

To sort according to the values of a column, click on the column's header. To change the sort order, click on the header a second time. The column currently used to sort the list is denoted by an up or down triangle in the column's header (see the Date Modified column in the above sample).

 

To resize a column manually by clicking on the line between that column and the next one, holding the mouse down and dragging the column's separator to the desired position.

 

To resize a column automatically, double-click on the column separator to the right of the column. The width of the column will automatically be adjusted to match the longest entry of the column.

 

Shortcuts which are the same as those of the ListBox :

 

You can move the selection up and down by one using the UP and Down keys.

 

You can move by larger increments by using the PageUp and PageDown keys.

 

Using the HOME key brings you to the top of the list.

 

Using the END key brings you to the end of the list.

 

You can move to a desired entry by typing the first letter of that entry. In the example above, typing F would move the selection to "Fake ...". If there are more than one entry beginning with the same letter, typing a letter a second time brings you to the second occurence of an entry starting with that letter, and so on.

 

See also Multiple Selection.


Topic 153900 updated on 26-Dec-2001.
Topic URL: http://www.qppstudio.net/webhelp/index.html?listview.htm