NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

ListView.AddOnBeforeLabelEdit

Adds an event handler for the "beforeLabelEdit" event notification. The beforeLabelEdit event is fired when the user attempts to begin changing the text of an item in the ListView. The event handler can cancel this event, in which case the user won't be allowed to edit the text. This event can be used to prevent the user from editing specific items in the ListView. If the labelEdit property of the ListView is false, this event will not be fired, and all user attempts to edit item labels will be automatically rejected.

[Visual Basic]
Public Sub AddOnBeforeLabelEdit( _
   ByVal handler As LabelEditEventHandler _
)
[C#]
public void AddOnBeforeLabelEdit(
   LabelEditEventHandler handler
);
[C++]
public: void AddOnBeforeLabelEdit(
   LabelEditEventHandler* handler
);
[JScript]
public function AddOnBeforeLabelEdit(
   handler : LabelEditEventHandler
);

Parameters

handler
LabelEditEventHandler to install for this event.

See Also

ListView Class | ListView Members | System.WinForms Namespace