FlexGrid for UWP/WinRT
GroupRowPosition プロパティ
使用例 

グループ行をデータに対してどこに表示するかを示す値を取得または設定します。
構文
'宣言
 
Public Property GroupRowPosition As GroupRowPosition
public GroupRowPosition GroupRowPosition {get; set;}
解説

グループは、Windows.UI.Xaml.Data.ICollectionView インタフェースを実装するデータソースによって作成されます。

グループを作成するには、まず Windows.UI.Xaml.Data.ICollectionView を実装するデータソースオブジェクト(Silverlight の PagedCollectionView や WPF の ListCollectionView など)を作成し、次に C1.Xaml.PropertyGroupDescription オブジェクトをデータソースの ICollectionView.GroupDescriptions コレクションに追加します。

グループの定義を完了すると、データソースが自動的にグループを作成して維持し、C1FlexGrid に結果が表示されます。

使用例
以下のコードは、グループ化を含むデータソースを作成し、それを C1FlexGrid に連結します。
// データソースとして使用される PagedCollectionView を作成します
var data = new ObservableCollection<Customer>();
for (int i = 0; i < 10; i++)
{
data.Add(new Customer(i));
}
var view = new PagedCollectionView(data);
using (view.DeferRefresh())
{
view.GroupDescriptions.Clear();
view.GroupDescriptions.Add(new PropertyGroupDescription("Country"));
view.GroupDescriptions.Add(new PropertyGroupDescription("Active"));
}

// グリッドをデータソースに連結します
_flex.ItemsSource = view;

// グループ行をデータの上に表示します
_flex.GroupRowPosition = GroupRowPosition.AboveData;
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

参照

関連項目

C1FlexGrid クラス
C1FlexGrid メンバ

Send Feedback