PivotedGridColumn-Klasse

Stellt eine Pivot-Tabellenspalte, die im JSGrid angezeigt wird.

Vererbungshierarchie

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

Hinweise

Schwenkbarer Spalten auf der rechten Seite des Datenblatts angezeigt werden.

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;

GridColumnWeitere Informationen finden Sie unter.

Threadsicherheit

Alle öffentlichen static (Shared in Visual Basic) Member dieses Typs sind threadsicher. Die Threadsicherheit von Instanzmembern ist nicht gewährleistet.

Siehe auch

Referenz

PivotedGridColumn-Member

Microsoft.SharePoint.JSGrid-Namespace