TdxSpreadSheetTableView.CanSort Method
In This Article
Identifies if it is possible to sort cell values.
#Declaration
Delphi
function CanSort: Boolean; virtual;
#Returns
Type |
---|
Boolean |
#Remarks
This function returns True only if the following conditions are met:
The Spreadsheet control’s OptionsBehavior.Editing property is set to True;
The worksheet’s protection settings do not forbid sort operations (that is, the OptionsProtection.ActualAllowSort property returns True).
Otherwise – the CanSort function returns False, and SortByColumnValues/SortByRowValues procedure calls have no effect.
See Also