GridControl.GetCellDisplayText(Int32, GridColumn) Method

Returns the text displayed within the specified cell.

Namespace: DevExpress.Mobile.DataGrid

Assembly: DevExpress.Mobile.Grid.v18.2.dll

Declaration

public string GetCellDisplayText(
    int rowHandle,
    GridColumn column
)
Public Function GetCellDisplayText(
    rowHandle As Integer,
    column As GridColumn
) As String

Parameters

Name Type Description
rowHandle Int32

An integer value specifying the handle of the row that contains the cell.

column GridColumn

A GridColumn object or descendant specifying the grid column that contains the cell. A System.ArgumentNullException exception will be thrown if the grid does not contain the specified column.

Returns

Type Description
String

A string displayed within the specified cell.

Remarks

IMPORTANT

This documentation topic describes legacy technology. We no longer develop new functionality for the GridControl and suggest that you use the new DataGridView control instead.

Use the GetCellDisplayText method to obtain a textual representation of the specified cell value. The returned string is formatted as specified by the GridColumn.DisplayFormat property of the column where the specified cell resides. If you need to obtain the actual cell value, use the GridControl.GetCellValue method instead.

The GetCellDisplayText method returns an empty string if the specified row handle does not point to any of the rows within the grid or points to a group row.

See Also