New to Telerik UI for WPFStart a free 30-day trial

Represents group descriptor, which groups by item's Member and sorts the groups by their Keys.

Definition

Constructors

C#
public GroupDescriptor()

Fields

MemberProperty

DependencyProperty

Identifies the Member dependency property.

C#
public static readonly DependencyProperty MemberProperty

Properties

Gets or sets the member name which will be used for grouping.

C#
public virtual string Member { get; set; }
Property Value:

The member name that will be used for grouping.

Gets or sets the type of the member that is used for grouping. Set this property if the member type cannot be resolved automatically. Such cases are: items with ICustomTypeDescriptor, XmlNode or DataRow. Changing this property will not raise PropertyChanged event.

C#
public virtual Type MemberType { get; set; }
Property Value:

The type of the member used for grouping.

Methods

Creates a group expression that returns the grouping key for each item in a collection.

C#
protected override Expression CreateGroupKeyExpression(ParameterExpression parameterExpression)
Parameters:parameterExpressionParameterExpression

The parameter expression, which will be used for grouping.

Returns:

Expression

Expression that creates group key for the given item.

Overrides: GroupDescriptorBase.CreateGroupKeyExpression(ParameterExpression)

Determines whether the specified other descriptor is equal to the current one.

C#
public virtual bool Equals(GroupDescriptor other)
Parameters:otherGroupDescriptor

The other group descriptor.

Returns:

bool

True if all members of the current descriptor are equal to the ones of other, otherwise false.

Implements: IEquatable<GroupDescriptor>.Equals(GroupDescriptor)