Back to Devexpress

SpreadsheetControl.Modified Property

wpf-devexpress-dot-xpf-dot-spreadsheet-dot-spreadsheetcontrol-dc491e3a.md

latest2.0 KB
Original Source

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.2.dll

NuGet Package : DevExpress.Wpf.Spreadsheet

Declaration

csharp
public bool Modified { get; set; }
vb
Public Property Modified As Boolean

Property Value

TypeDescription
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.

See Also

SpreadsheetControl Class

SpreadsheetControl Members

DevExpress.Xpf.Spreadsheet Namespace