PivotedGridColumn Class
Represents a pivot grid column that will appear in JSGrid.
Inheritance Hierarchy
System.Object
Microsoft.SharePoint.JSGrid.BaseGridColumn
Microsoft.SharePoint.JSGrid.PivotedGridColumn
Namespace: Microsoft.SharePoint.JSGrid
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Class PivotedGridColumn _
Inherits BaseGridColumn
'Usage
Dim instance As PivotedGridColumn
public class PivotedGridColumn : BaseGridColumn
Remarks
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.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.