Discards the editing values in the Spread component.
Syntax
Visual Basic (Declaration) | |
---|
Public Sub CancelEdit() |
Visual Basic (Usage) | Copy Code |
---|
Dim instance As FpSpread
instance.CancelEdit() |
C# | |
---|
public void CancelEdit() |
Example
This example cancels editing, discarding edited values and reverting back to the original values.
C# | Copy Code |
---|
privatevoidbtnCancelEdit_Click(objectsender,EventArgse)
{
//ThismethodhasthesameeffectasclickingtheCancelbuttonintheFpSpreadcommandbar
FpSpread1.CancelEdit();
} |
Visual Basic | Copy Code |
---|
PrivateSubbtnCancelEdit_Click(ByValsenderAsSystem.Object,ByValeAsSystem.EventArgs)
'ThismethodhasthesameeffectasclickingtheCancelbuttonintheFpSpreadcommandbar
FpSpread1.CancelEdit()
EndSub |
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