method Pivot.GetHeaders ()
Gets a safe array of all generated columns/headers.

TypeDescription
ReturnDescription
VariantA safe array ( two dimensional ), that contains the headers of the control's list.
The GetHeaders method returns a two-dimensional safe array that includes all headers being shown on the control's list. The GetItems method gets a two-dimensional safe array that includes all values/items being shown on the control's list.

Having the following layout:

The GetHeaders method gets the following result:

-		GetHeaders() as object[,]		{Dimensions:[5, 2]}	object[,]
		[0, 0]	"ShipCountry ShipCity"	object {string}
		[0, 1]	null					object
		[1, 0]	"Sum of Freight"		object {string}
		[1, 1]	null					object
		[2, 0]	"Federal Shipping"		object {string}
		[2, 1]	"Sum of Freight"		object {string}
		[3, 0]	"Speedy Express"		object {string}
		[3, 1]	"Sum of Freight"		object {string}
		[4, 0]	"United Package"		object {string}
		[4, 1]	"Sum of Freight"		object {string}