SpreadsheetControl.DocumentClosing Event
In This Article
Occurs when a document that has not yet been saved is about to be closed.
Namespace: DevExpress.XtraSpreadsheet
Assembly: DevExpress.XtraSpreadsheet.v24.2.dll
NuGet Package: DevExpress.Win.Spreadsheet
#Declaration
public event CancelEventHandler DocumentClosing
#Event Data
The DocumentClosing event's data class is CancelEventArgs. The following properties provide information specific to this event:
Property | Description |
---|---|
Cancel | Gets or sets a value indicating whether the event should be canceled. |
#Remarks
Handle the DocumentClosing event to specify the actions to perform before the document is closed. To cancel closing, set the e.Cancel value to true.
Note
The Document
See Also