GridControl.GetCellDisplayText(Int32, String) 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,
    string fieldName
)
Public Function GetCellDisplayText(
    rowHandle As Integer,
    fieldName As String
) As String

Parameters

Name Type Description
rowHandle Int32

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

fieldName String

A String value specifying the column's filed name.

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 in the following cases:

  • the specified row handle does not point to any of the rows within the grid or points to a group row;
  • the grid does not contain a column with the specified field name.
See Also