Retrieves the index of the specified child report item within the item collection, and optionally raises an exception if the specified report item is not within the item collection.

Namespace:  Telerik.Reporting
Assembly:  Telerik.Reporting (in Telerik.Reporting.dll)


public virtual int GetChildIndex(
	ReportItemBase child,
	bool throwException


Type: Telerik.ReportingReportItemBase
The ReportItemBase to search for in the item collection.
Type: SystemBoolean
true to throw an exception if the ReportItemBase specified in the child parameter is not an item in the ReportItemBaseItemCollection; otherwise, false.

Return Value

Type: Int32
A zero-based index value that represents the location of the specified child report item within the item collection; otherwise -1 if the specified ReportItemBase is not found in the ReportItemBaseItemCollection.


ArgumentException The child is not contained in the collection and the throwException parameter is true.

Version Information

Supported in: 1.0.1

See Also

In this article
Not finding the help you need?