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

RepositoryItemLookUpEdit.GetDataSourceValue(String, Int32) Method

Gets the value contained in the specified row and field in the dropdown data source.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

public virtual object GetDataSourceValue(
    string fieldName,
    int rowIndex
)

#Parameters

Name Type Description
fieldName String

A string representing the field name that contains the required value.

rowIndex Int32

An integer value specifying the row’s visual index in the dropdown list.

#Returns

Type Description
Object

An object representing the value in the specified row and column. null if the specified row or field is not found.

#Remarks

Use the GetDataSourceValue method to obtain the value contained in the specified row and field in the dropdown data source. The row is identified by its visual index in the dropdown. This index can be obtained via the RepositoryItemLookUpEdit.GetDataSourceRowIndex method.

This overload can be used to get the specified row’s value in the specified field, even if there isn’t any column in the RepositoryItemLookUpEdit.Columns collection bound to this field.

See Also