SpreadsheetGear 2010
CellCancelEdit Event
See Also  Send Feedback
SpreadsheetGear.Windows.Forms Namespace > WorkbookView Class : CellCancelEdit Event

Occurs when edit mode is being canceled and provides the ability to force edit mode to continue by cancelling the event.

Syntax

Visual Basic (Declaration) 
<DescriptionAttribute("Occurs when edit mode is canceled.")>
<CategoryAttribute("Data")>
Public Event CellCancelEdit As CellCancelEditEventHandler
C# 
[DescriptionAttribute("Occurs when edit mode is canceled.")]
[CategoryAttribute("Data")]
public event CellCancelEditEventHandler CellCancelEdit

Event Data

The event handler receives an argument of type CellCancelEditEventArgs containing data related to this event. The following CellCancelEditEventArgs properties provide information specific to this event.

PropertyDescription
ActiveCell Returns the active cell from the time edit mode was started.
Cancel Gets or sets the value which specifies whether the event should be canceled.
Entry Gets or sets the edit entry text.
RangeSelection Returns the range selection from the time edit mode was started.

Remarks

The CellCancelEdit event occurs when edit mode is being canceled, and provides the event handler with the ability to force edit mode to continue.

The CellCancelEdit event is always invoked on the thread which created the workbook view control, and a lock is always acquired on the workbook set associated with the workbook view control before CellCancelEdit is invoked.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

Copyright © 2003-2010 SpreadsheetGear LLC. All Rights Reserved.Help Powered by Innovasys   
SpreadsheetGear is a registered trademark of SpreadsheetGear LLC.
Microsoft, Microsoft Excel and Visual Studio are trademarks or registered trademarks of Microsoft Corporation.