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

ColumnView.GetListSourceRowCellValue(Int32, GridColumn) Method

Returns the value of the specified cell, which is identified by a column 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,
    GridColumn column
)

Parameters

Name Type Description
listSourceRowIndex Int32

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

column GridColumn

A GridColumn object identifying a field in the data source.

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.

The following code snippets (auto-collected from DevExpress Examples) contain references to the GetListSourceRowCellValue(Int32, GridColumn) 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