GridSerializer.EnableHierarchy Method
Configures the grid to display its rows in a hierarchy.
Namespace: Microsoft.SharePoint.JSGrid
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Sub EnableHierarchy ( _
unfilteredHierarchyTable As DataTable, _
hierarchyParentKeyColumnName As String, _
hierarchyOutlineTextColumnName As String, _
serializeUnfilteredHierarchy As Boolean _
)
'Usage
Dim instance As GridSerializer
Dim unfilteredHierarchyTable As DataTable
Dim hierarchyParentKeyColumnName As String
Dim hierarchyOutlineTextColumnName As String
Dim serializeUnfilteredHierarchy As Boolean
instance.EnableHierarchy(unfilteredHierarchyTable, _
hierarchyParentKeyColumnName, hierarchyOutlineTextColumnName, _
serializeUnfilteredHierarchy)
public void EnableHierarchy(
DataTable unfilteredHierarchyTable,
string hierarchyParentKeyColumnName,
string hierarchyOutlineTextColumnName,
bool serializeUnfilteredHierarchy
)
Parameters
unfilteredHierarchyTable
Type: System.Data.DataTableA parameter that is required if hierarchical editing operations are enabled.
hierarchyParentKeyColumnName
Type: System.StringThis needs to be provided if the unfilteredHierarchyTable parameter is omitted. The values column should correspond to the record keys of that record’s parent.
hierarchyOutlineTextColumnName
Type: System.StringSpecifies which grid column should display the controls used to expand and collapse hierarchy nodes.
serializeUnfilteredHierarchy
Type: System.BooleanSpecifies if the unfiltered hierarchy should be sent down to the client.