Category / Section
How to identify when the workbook is modified in WPF Spreadsheet?
1 min read
IsCellModified Property of WorkbookImpl class is used to identify whether the cell value in workbook changed or not. When the cell value in the workbook changes, IsCellModified property returns true. You can access this internal property using Reflection.
The below code illustrates how to access internal property IsCellModified using Reflection.
var wb = spreadsheet.Workbook as WorkbookImpl; BindingFlags bindFlags = BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Static; var value = typeof(WorkbookImpl).GetProperty("IsCellModified", bindFlags).GetValue(wb);
Sample Link: