System.Windows.Forms.ListView.LabelEdit Property

Gets or sets a value indicating whether the user can edit the labels of items in the control.

Syntax

[System.ComponentModel.DefaultValue(false)]
public bool LabelEdit { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

When the ListView.LabelEdit property is set to true, the user is able to modify the text of an item by clicking the item text to select it and then clicking the item text again to put the label text into edit mode. The user can then modify or replace the item's text label. You can use the ListView.BeforeLabelEdit and ListView.AfterLabelEdit events to perform tasks before and after the user edits an item's text. The text of subitems cannot be modified if this property is set to true. To change the text of subitems, you can display a dialog box to users when they double-click a subitem in the control.

Note:

If the ListView.Activation property is set to ItemActivation.OneClick or ItemActivation.TwoClick, label editing will not be allowed regardless of the value of the ListView.LabelEdit property.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0