Skip to main content
A newer version of this page is available. .

ASPxPivotGrid.GetFieldValueByIndex(PivotGridField, Int32) Method

Returns the specified field’s value by its index.

Namespace: DevExpress.Web.ASPxPivotGrid

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

NuGet Package: DevExpress.Web

Declaration

public object GetFieldValueByIndex(
    PivotGridField field,
    int fieldValueIndex
)

Parameters

Name Type Description
field PivotGridField

A PivotGridField object that represents the field which contains the required value.

fieldValueIndex Int32

An integer value that identifies the required field value.

Returns

Type Description
Object

An object that represents the specified field’s value.

Remarks

The GetFieldValueByIndex method can be used when handling the client-side ASPxClientPivotGrid.PopupMenuItemClick event.

Tip

Consider using the ASPxPivotGrid.GetFieldValueInfo method instead. It allows you to differentiate between the column and row areas when passing the field value index.

To obtain the field value for which the popup menu has been invoked, follow the steps below:

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the GetFieldValueByIndex(PivotGridField, Int32) method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also