'Declaration Public Enum GroupByAreaMode Inherits System.Enum
public enum GroupByAreaMode : System.Enum
Member | Description |
---|---|
DefaultFieldLayoutOnly | In this mode the GroupByArea displays 2 lists of fields. The first list contains fields that are currently being grouped and the second list contains available fields from the DefaultFieldLayout. The user can drag fields between these lists to change their groupby status. |
MultipleFieldLayoutsCompact | The GroupByArea supports more than one field layout and the FieldLayouts are stacked horizontally to save vertical space. In order to group by a field the user must drag its associated LabelPresenter into the GroupByArea. |
MultipleFieldLayoutsFull | The GroupByArea supports more than one field layout and the FieldLayouts are stacked vertically. In order to group by a field the user must drag its associated LabelPresenter into the GroupByArea. This is the default setting. |
' set GroupByAreaMode to 'MultipleFieldLayoutsCompact' so that all ' fields will be displayed horizontally in a single list ' ' Note: the default value is 'MultipleFieldLayoutsFull' which will ' display the FieldLayouts hierarchically. Me.xamDataGrid1.GroupByAreaMode = GroupByAreaMode.MultipleFieldLayoutsCompact Dim grpByAreaMulti As GroupByAreaMulti = Me.xamDataGrid1.GroupByAreaMulti ' specify the pen used for connecting fields in the GroupByAreaMulti grpByAreaMulti.ConnectorLinePen = New Pen(Brushes.Red, 2) ' set an optional offset between fields in the GroupByAreaMulti grpByAreaMulti.FieldOffsetX = 10 grpByAreaMulti.FieldOffsetY = 10 ' set an optional offset between fieldlayouts in the GroupByAreaMulti ' (e.g. with hierachical and/or heterogenuous data) grpByAreaMulti.FieldLayoutOffsetX = 15 grpByAreaMulti.FieldLayoutOffsetY = 5 ' You can optionally set the 2 prompts displayed in the GroupByAreaMulti grpByAreaMulti.Prompt1 = "*** Groupby Area ***" grpByAreaMulti.Prompt2 = "Drag a field here to group by that field." ' Specify an optional custom template for the FieldLayout description ' Note": The FieldLayout description is only visible when there ' are fields from multiple FieldLayouts present. Dim template As Object = Me.TryFindResource("MyCustomTemplate") If TypeOf template Is DataTemplate Then grpByAreaMulti.FieldLayoutDescriptionTemplate = CType(template, DataTemplate) End If
// set GroupByAreaMode to 'MultipleFieldLayoutsCompact' so that all // fields will be displayed horizontally in a single list // // Note: the default value is 'MultipleFieldLayoutsFull' which will // display the FieldLayouts hierarchically. this.xamDataGrid1.GroupByAreaMode = GroupByAreaMode.MultipleFieldLayoutsCompact; GroupByAreaMulti groupByAreaMulti = this.xamDataGrid1.GroupByAreaMulti; // specify the pen used for connecting fields in the GroupByAreaMulti groupByAreaMulti.ConnectorLinePen = new Pen( Brushes.Red, 2); // set an optional offset between fields in the GroupByAreaMulti groupByAreaMulti.FieldOffsetX = 10; groupByAreaMulti.FieldOffsetY = 10; // set an optional offset between fieldlayouts in the GroupByAreaMulti // (e.g. with hierachical and/or heterogenuous data) groupByAreaMulti.FieldLayoutOffsetX = 15; groupByAreaMulti.FieldLayoutOffsetY = 5; // You can optionally set the 2 prompts displayed in the GroupByAreaMulti groupByAreaMulti.Prompt1 = "*** Groupby Area ***"; groupByAreaMulti.Prompt2 = "Drag a field here to group by that field."; // Specify an optional custom template for the FieldLayout description // Note": The FieldLayout description is only visible when there // are fields from multiple FieldLayouts present. groupByAreaMulti.FieldLayoutDescriptionTemplate = this.TryFindResource("MyCustomTemplate") as DataTemplate;
Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, 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