Skip to main content
Tab

ASPxGridColumnDataEventArgs.GetListSourceFieldValue(Int32, String) Method

Returns the value of the specified field in the specified data item (row, card or record) in the control’s underlying data source.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v23.2.dll

NuGet Package: DevExpress.Web

Declaration

public object GetListSourceFieldValue(
    int listSourceRowIndex,
    string fieldName
)

Parameters

Name Type Description
listSourceRowIndex Int32

An integer value specifying the data item’s index.

fieldName String

A string that specifies the required field name.

Returns

Type Description
Object

An object that is a value from the control’s data source.

Remarks

The GetListSourceFieldValue method returns a value from the specified cell in the control’s underlying data source. The cell is identified by the data item’s index and field name. To get the index of the processed data item, use the ASPxGridColumnDataEventArgs.ListSourceRowIndex property.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the GetListSourceFieldValue(Int32, String) 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