RepositoryItemGridLookUpEdit.GetDisplayText(Int32) Method

Returns the text representation of the object that is stored in the DisplayMember field in the specified row.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraGrid.v20.1.dll

Declaration

public virtual string GetDisplayText(
    int index
)
Public Overridable Function GetDisplayText(
    index As Integer
) As String

Parameters

Name Type Description
index Int32

The zero-based index of the required row in the dropdown data source.

Returns

Type Description
String

A string that specifies the display text for the specified row.

Remarks

This method retrieves the display text from the row that is positioned at the specified index in the underlying data source. The display text is the text representation of the row's value that is stored in the RepositoryItemLookUpEditBase.DisplayMember field.

To get a display value (object) rather than its text representation use the RepositoryItemGridLookUpEdit.GetDisplayValue method.

See Also