ListObject.SaveSortOrder Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets a value that indicates whether the row order of the ListObject control is saved in the worksheet.
public:
property bool SaveSortOrder { bool get(); void set(bool value); };
public bool SaveSortOrder { get; set; }
member this.SaveSortOrder : bool with get, set
Public Property SaveSortOrder As Boolean
Property Value
true
to save the row order in the worksheet; otherwise, false
. The default is false
.
Remarks
This property only applies to ListObject controls that are bound to data.
If you do not set this property, the row order of the ListObject will match the row order of the data source the next time the workbook is opened, even if the user made changes to the sorting and saved the workbook.