Skip to main content

PivotGridFieldCollection.Item[String] Property

Gets the field with the specified id, name of the bound database field or caption.

Namespace: DevExpress.Web.ASPxPivotGrid

Assembly: DevExpress.Web.ASPxPivotGrid.v24.2.dll

Declaration

public PivotGridField this[string id_fieldName_Caption] { get; }

Parameters

Name Type Description
id_fieldName_Caption String

A string value which specified the field’s id, name of the bound database field or the field’s caption.

Property Value

Type Description
PivotGridField

A PivotGridField object which represents a field with the specified id, name of the bound database field or caption.

Remarks

This method searches the collection for the PivotGridField object whose PivotGridField.ID property’s value matches the parameter’s value. If such an object isn’t found, the collections is searched for the field whose PivotGridField.FieldName property’s value matches the parameter’s value.

If such a field isn’t found, the collection is searched for the field whose PivotGridFieldBase.Caption property’s value matches the parameter’s value. If such a field isn’t found the indexer returns null (Nothing in Visual Basic).

See Also