SortDescription.PropertyName 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 the property name being used as the sorting criteria.
public:
property System::String ^ PropertyName { System::String ^ get(); void set(System::String ^ value); };
public string PropertyName { get; set; }
member this.PropertyName : string with get, set
Public Property PropertyName As String
Property Value
The default value is null.
Remarks
This property should be a public property of the items in the underlying collection.
The string is interpreted by the particular ICollectionView object involved in the sorting. BindingListCollectionView only supports simple column names. ListCollectionView supports general property paths and XPath
for XML data. Therefore, when the view is a ListCollectionView object, you can sort XML nodes in an XmlDataProvider based on an attribute of those nodes. For example, if the attribute name is Cost
, you would specify "@Cost" for the PropertyName in the SortDescription.
Applies to
Σχόλια
https://aka.ms/ContentUserFeedback.
Σύντομα διαθέσιμα: Καθ' όλη τη διάρκεια του 2024 θα καταργήσουμε σταδιακά τα ζητήματα GitHub ως μηχανισμό ανάδρασης για το περιεχόμενο και θα το αντικαταστήσουμε με ένα νέο σύστημα ανάδρασης. Για περισσότερες πληροφορίες, ανατρέξτε στο θέμα:Υποβολή και προβολή σχολίων για