SpreadsheetControl.Modified Property
Gets or sets a value that indicates that the SpreadsheetControl content was modified since it was last saved. This is a dependency property.
Namespace: DevExpress.Xpf.Spreadsheet
Assembly: DevExpress.Xpf.Spreadsheet.v25.1.dll
NuGet Package: DevExpress.Wpf.Spreadsheet
Declaration
Property Value
Type | Description |
---|---|
Boolean | true, if the control’s contents was modified since it was last saved; otherwise, false. |
Remarks
You can use the Modified
property to distinguish between document loading and modifying within the SpreadsheetControl.ContentChanged event handler.
The SpreadsheetControl.SaveDocument, SpreadsheetControl.SaveDocumentAs or ISpreadsheetComponent.SaveDocument method call does not automatically change the Modified
property value. The SaveDocumentCommand
or SaveDocumentAsCommand
execution changes the Modified
property value to false
.
When the Modified
is true
, the UI command that saves the document is enabled.