Breyta

Deila með


SortDescription.PropertyName Property

Definition

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