Stores the ordered grouping levels applied by a collection view.
Each descriptor defines one level, and its group-name descriptors identify the fields and directions used at that level.
Definition
Namespace:Telerik.WinControls.Data
Assembly:Telerik.WinControls.dll
Syntax:
public class GroupDescriptorCollection : NotifyCollection<GroupDescriptor>, IList, ICollection, IEnumerable, INotifyCollectionChanged, INotifyPropertyChanged
Inheritance: objectCollection<GroupDescriptor>NotifyCollection<GroupDescriptor>GroupDescriptorCollection
Derived Classes:
Implements:
Inherited Members
Constructors
public GroupDescriptorCollection()
Properties
Gets or sets the expression.
public virtual string Expression { get; set; }
The expression.
Gets or sets a value indicating whether fields with names that differ only in the casing should be considered different.
public bool UseCaseSensitiveFieldNames { get; set; }
Methods
Adds the specified property name.
public void Add(string propertyName, ListSortDirection direction)
Name of the property.
directionListSortDirectionThe direction.
Detaches ownership and property-change subscriptions from all descriptors before clearing the collection.
protected override void ClearItems()
Overrides:
Finds all sort descriptors associated with the group descriptors by property name
public ReadOnlyCollection<SortDescriptor> FindAllAssociatedSortDescriptors(string propertyName, bool caseSensitive)
Name of the property.
caseSensitiveboolif set to true [case sensitive].
ReadOnlyCollection<SortDescriptor>
All sort descriptors contained in the group descriptors by the specified propertyName
Finds all sort descriptors associated with the group descriptors by property name
public ReadOnlyCollection<SortDescriptor> FindAllAssociatedSortDescriptors(string propertyName)
Name of the property.
Returns:ReadOnlyCollection<SortDescriptor>
All sort descriptors contained in the group descriptors by the specified propertyName
Creates the comparison options used to match group field names.
Inserts a descriptor, assigns its owner, and subscribes to its property-change notifications.
protected override void InsertItem(int index, GroupDescriptor item)
The position at which to insert the descriptor.
itemGroupDescriptorThe descriptor to insert.
Overrides:
Removes a descriptor and detaches its ownership and property-change subscription.
protected override void RemoveItem(int index)
The position of the descriptor to remove.
Overrides:
Replaces a descriptor and updates ownership and property-change subscriptions for both instances.
protected override void SetItem(int index, GroupDescriptor item)
The position of the descriptor to replace.
itemGroupDescriptorThe replacement descriptor.
Overrides: