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

ColumnView.GetListSourceRowCellValue(Int32, String) Method

Returns the value of the specified cell, which is identified by a field name and the index of a record in the data source.

Namespace: DevExpress.XtraGrid.Views.Base

Assembly: DevExpress.XtraGrid.v19.1.dll

Declaration

public object GetListSourceRowCellValue(
    int listSourceRowIndex,
    string fieldName
)

Parameters

Name Type Description
listSourceRowIndex Int32

An integer value representing the index of the record in the underlying data source.

fieldName String

A string representing the field name.

Returns

Type Description
Object

An object representing the required cell’s value.

Remarks

This method takes the index of a record in the data source as a parameter. Typically, you use this method to get row values while handling specific events (ColumnView.CustomUnboundColumnData and ColumnView.CustomColumnSort). These events provide ListSourceRowIndex parameters, which identify currently processed rows. Use these parameters to identify rows while calling the GetListSourceRowCellValue method.

To get row values based on indexes or rows in the grid control, use the ColumnView.GetRowCellValue method.

Note

Detail pattern Views do not contain data and they are never displayed within XtraGrid. So, the GetListSourceRowCellValue member must not be invoked for these Views. The GetListSourceRowCellValue member can only be used with real Views that are displayed within the Grid Control. The real Views with which an end-user interacts at runtime can be accessed using the following methods.

See Also