Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

RepositoryItemGridLookUpEdit.GetDisplayValue(Int32) Method

Returns an object that is stored in the DisplayMember field in the specified row.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraGrid.v24.2.dll

NuGet Packages: DevExpress.Win.Grid, DevExpress.Win.Navigation

#Declaration

public virtual object GetDisplayValue(
    int index
)

#Parameters

Name Type Description
index Int32

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

#Returns

Type Description
Object

An object stored in the DisplayMember field in the specified row; null if no row exists with the specified index.

#Remarks

This method retrieves an object that is stored in the RepositoryItemLookUpEditBase.DisplayMember field of the specified row. The required row is identified by its index in the underlying data source.

To get the text representation of the display value use the RepositoryItemGridLookUpEdit.GetDisplayText method.

See Also