'Declaration
Public Property GroupRowPosition As GroupRowPosition
public GroupRowPosition GroupRowPosition {get; set;}
'Declaration
Public Property GroupRowPosition As GroupRowPosition
public GroupRowPosition GroupRowPosition {get; set;}
Groups are created by data sources that implement the System.ComponentModel.ICollectionView interface.
To create groups, start by creating a data source object that implements System.ComponentModel.ICollectionView (such as PagedCollectionView in Silverlight or ListCollectionView in WPF), then add System.Windows.Data.PropertyGroupDescription objects to the data source's System.ComponentModel.ICollectionView.GroupDescriptions collection.
Once the groups have been defined, the data source will automatically create and maintain them, and the C1FlexGrid will display the results.
// create PagedCollectionView used as a data source 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")); } // bind grid to data source _flex.ItemsSource = view; // show group rows above the data _flex.GroupRowPosition = GroupRowPosition.AboveData;