GridSerializer.EnableHierarchy method

Configures the grid to display its rows in a hierarchy.

Namespace:  Microsoft.SharePoint.JSGrid
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

public void EnableHierarchy(
	DataTable unfilteredHierarchyTable,
	string hierarchyParentKeyColumnName,
	string hierarchyOutlineTextColumnName,
	bool serializeUnfilteredHierarchy
)

Parameters

unfilteredHierarchyTable
Type: System.Data.DataTable

A parameter that is required if hierarchical editing operations are enabled.

hierarchyParentKeyColumnName
Type: System.String

This 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.String

Specifies which grid column should display the controls used to expand and collapse hierarchy nodes.

serializeUnfilteredHierarchy
Type: System.Boolean

Specifies if the unfiltered hierarchy should be sent down to the client.

Show: