TdxSpreadSheetTableView.CanDelete Method
Identifies if users can delete cell data from the worksheet.
Declaration
function CanDelete: Boolean; overload; virtual;
Returns
Type | Description |
---|---|
Boolean | True if users can delete cell data; otherwise, False. |
Remarks
The function returns True only if the following conditions are met:
Cell delete operations are allowed (that is, the Spreadsheet control’s OptionsBehavior.Editing and OptionsBehavior.Deleting properties are set to True).
Users can delete cells (that is, the worksheet protection is disabled or the protected worksheet allows users to delete columns or rows).
Otherwise, the CanDelete function returns False.
Note
The CanDelete function only identifies if an ability to delete cell values is available. If you need to identify if users can delete both values and custom cell styles, call the CanClearCells function instead.
See Also