PropertyName Property
Collapse the table of content
Expand the table of content

SortDescription.PropertyName Property

 

Gets or sets the property name being used as the sorting criteria.

Namespace:   System.ComponentModel
Assembly:  WindowsBase (in WindowsBase.dll)

Public Property PropertyName As String

Property Value

Type: System.String

The default value is null.

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.

.NET Framework
Available since 3.0
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
Show:
© 2016 Microsoft