PivotedGridColumn class
SharePoint 2013
Represents a pivot grid column that will appear in JSGrid.
System.Object
Microsoft.SharePoint.JSGrid.BaseGridColumn
Microsoft.SharePoint.JSGrid.PivotedGridColumn
Microsoft.SharePoint.JSGrid.BaseGridColumn
Microsoft.SharePoint.JSGrid.PivotedGridColumn
Namespace: Microsoft.SharePoint.JSGrid
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Pivoted columns appear at the right of the grid.
List<PivotedGridColumn> r = new List<PivotedGridColumn>();
//Create the Pivoted "Header" Column
PivotedGridColumn col = new PivotedGridColumn();
col.ColumnKey = "header";
col.FieldKeys = new String[] { "Quarter 1", "Quarter 2", "Quarter 3", "Quarter 4" };
col.Name = "Quarter";
col.Width = 100;
r.Add(col);
//display
col = new PivotedGridColumn();
col.ColumnKey = "tests1";
col.FieldKeys = new String[] { "costq 1", "costq 2", "costq 3", "costq 4" };
col.Name = "Fiscal 2009";
col.Width = 100;
r.Add(col);
col = new PivotedGridColumn();
col.ColumnKey = "tests2";
col.FieldKeys = new String[] { "costq 5", "costq 6", "costq 7", "costq 8" };
col.Name = "Fiscal 2010";
col.Width = 100;
r.Add(col);
return r;
Refer to GridColumnfor more information.
Show: