BindingListCollectionView.GroupDescriptions 속성

정의

컬렉션의 항목이 뷰에서 그룹화되는 방법을 설명하는 GroupDescription 개체의 컬렉션을 가져옵니다.

public:
 virtual property System::Collections::ObjectModel::ObservableCollection<System::ComponentModel::GroupDescription ^> ^ GroupDescriptions { System::Collections::ObjectModel::ObservableCollection<System::ComponentModel::GroupDescription ^> ^ get(); };
public override System.Collections.ObjectModel.ObservableCollection<System.ComponentModel.GroupDescription> GroupDescriptions { get; }
member this.GroupDescriptions : System.Collections.ObjectModel.ObservableCollection<System.ComponentModel.GroupDescription>
Public Overrides ReadOnly Property GroupDescriptions As ObservableCollection(Of GroupDescription)

속성 값

ObservableCollection<GroupDescription>

컬렉션의 항목이 뷰에서 그룹화되는 방법을 설명하는 GroupDescription 개체의 컬렉션입니다.

예제

다음 예제에서는 이 속성을 사용하는 방법을 보여줍니다.

// This groups the items in the view by the property "Category"
PropertyGroupDescription groupDescription = new PropertyGroupDescription();
groupDescription.PropertyName = "Category";
listingDataView.GroupDescriptions.Add(groupDescription);
'This groups by property "Category"
Dim groupDescription As PropertyGroupDescription = New PropertyGroupDescription
groupDescription.PropertyName = "Category"
listingDataView.GroupDescriptions.Add(groupDescription)

전체 예제를 참조 하세요 데이터 바인딩 데모합니다.

설명

참고

이 속성은 컬렉션 개체에 액세스하고 Add와 같은 다양한 메서드를 사용해야만 설정할 수 있습니다. 컬렉션 개체 자체에 액세스하는 속성은 읽기 전용입니다. 컬렉션 자체는 읽기/쓰기가 가능합니다.

적용 대상

추가 정보