Redigera

Dela via


PropertyGroupDescription.PropertyName Property

Definition

Gets or sets the name of the property that is used to determine which group(s) an item belongs to.

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

PropertyGroupDescription allows you to create implicit groups based on a PropertyName. If you simply want to group by a property you can set the PropertyName property. If you want to change the value that is eventually used for group you can use the Converter property to supply a value converter. For example, you may want to group items based on the first letter of a name. If the PropertyName property is not set, the item itself is passed to the value converter. The converter may return a collection, which indicates the items can appear in more than one group.

You can also define how string comparison should take place using the StringComparison property.

Applies to