Back to Devexpress

SpreadsheetControl.ProtectionWarning Event

windowsforms-devexpress-dot-xtraspreadsheet-dot-spreadsheetcontrol-1c5fc2e4.md

latest1.8 KB
Original Source

SpreadsheetControl.ProtectionWarning Event

Occurs when attempting to edit a locked cell in a protected worksheet.

Namespace : DevExpress.XtraSpreadsheet

Assembly : DevExpress.XtraSpreadsheet.v25.2.dll

NuGet Package : DevExpress.Win.Spreadsheet

Declaration

csharp
public event HandledEventHandler ProtectionWarning
vb
Public Event ProtectionWarning As HandledEventHandler

Event Data

The ProtectionWarning event's data class is HandledEventArgs. The following properties provide information specific to this event:

PropertyDescription
HandledGets or sets a value that indicates whether the event handler has completely handled the event or whether the system should continue its own processing.

Remarks

If you want to customize the warning dialog which appears each time a user attempts to modify a locked cell, handle the ProtectionWarning event. To suppress the default warning dialog, set the e.Handled property to true. Invoke your own dialog within the event handler.

See Also

SpreadsheetControl Class

SpreadsheetControl Members

DevExpress.XtraSpreadsheet Namespace