Windows Application - SPLessons

Win App List View Control

Home > Lesson > Chapter 11
SPLessons 5 Steps, 3 Clicks
5 Steps - 3 Clicks

Win App List View Control

Windows Application List View Control

shape Description

A list View Control is a control, which is used to display a list of items like text and images.

shape Difference

Difference between the list box and list view control. List Box control and list view control are same in functionality. But list view control has an additional property called view. This View property makes the list view control as more effective.

shape Properties

List View Control have the following properties. Items
  • This property allows to add items to the list box.
View
  • By using view property, one can set the different types of views. The following figures shows you different views in the list view control.
Hot Tracking
  • When the user hovers on the item, hot tracking property is used to highlight the text with an underline.
HoverSelection
  • When the user hover on the item, HoverSelection is used to display item as selective item (item showed in the blue color).
SmallImageList and LargeImageList
  • One can also able to set an image to items in the list view control using these two properties, and have to set one of the two imagelists as a reference to imagelistcontrol.
Activation
  • Activation property is used to set "On which mouse click the activation of an item in the ListView Control takes place". That means for the single mouse click or double mouse click. Three types of values for Activation property.
  • Standard and Two Click- These two have the same feature and these are the default behaviors.
  • Single Click- Allows the user to activate an item in a single mouse click.
  • CheckBoxes- CheckBoxes property has the boolean value which is used to set Checkboxes for our items. By default, it should be FALSE. One have to set it as TRUE if want to add check boxes to our items.
LabelEdit
  • Label Edit is used like aRenamein our windows explorer. One can edit our items dynamically with LabelEdit property. These are the different properties of ListView Control. ListView Control have SelectedIndexChanged as the default event. Another important event is ItemActivate which is used to write the functionality after item activation.