Represents a group header in a RadListView and exposes the items belonging to that group. Its Expanded state controls whether those items are displayed; a group can represent either a data-view group or a custom group.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
[TypeConverter(typeof(ListViewDataItemGroupTypeConverter))]
public class ListViewDataItemGroup : ListViewDataItem, IDataItem, INotifyPropertyChanged, INotifyPropertyChangingEx, IDisposable
Inheritance: objectListViewDataItemListViewDataItemGroup
Implements:
Inherited Members
Constructors
Creates an empty group with its items initially expanded.
public ListViewDataItemGroup()
Creates an empty, initially expanded group with the specified header text.
public ListViewDataItemGroup(string text)
The text displayed for the group header.
Fields
Mask for the group's expanded state in the inherited item state vector.
protected const int ExpandedState = 64
Properties
Gets the data group that is assigned to this group.
[Browsable(false)]
public Group<ListViewDataItem> DataGroup { get; }
Gets or sets a value indicating whether the group's items should be displayed.
[Browsable(true)]
public bool Expanded { get; set; }
Gets the items in this group.
[Browsable(false)]
public ListViewGroupedItemsCollection Items { get; }
Methods
Clears the group's item associations, disposes its item collection, and releases base item resources.
public override void Dispose()
Overrides:
Propagates owner changes to the group's items and notifies the owner after the expanded state changes.
protected override void OnNotifyPropertyChanged(PropertyChangedEventArgs args)
The property-change event data.
Overrides:
Cancels an expansion change if either the item's property-changing notification or the owning list view's group-expanding event cancels it.
protected override bool OnNotifyPropertyChanging(PropertyChangingEventArgsEx args)
The property-changing event data for the requested change.
Returns:true if the expansion change is cancelled; otherwise, false.
Overrides: