Gets or sets a value indicating whether changes made to the label of the ListItem should be canceled.
[Visual Basic] Public Property CancelEdit As Boolean [C#] public bool CancelEdit {get; set;} [C++] public: __property bool get_CancelEdit(); public: __property void set_CancelEdit(bool); [JScript] public function get CancelEdit() : Boolean; public function set CancelEdit(Boolean);
true if the edit operation of the label for the ListItem should be canceled; otherwise false.
You can use this property to cancel changes made to the label of a ListItem, and revert it to its original text. Use this property to prevent an item's caption from being changed to a value that does not meet your application's requirements.
LabelEditEventArgs Class | LabelEditEventArgs Members | System.WinForms Namespace