Skip to main content
A newer version of this page is available. .

RepositoryItemTreeListLookUpEdit.GetRowByKeyValue(Object) Method

Returns a data source row containing the specified value in the RepositoryItemLookUpEditBase.ValueMember field.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraTreeList.v19.1.dll

Declaration

public object GetRowByKeyValue(
    object keyValue
)

Parameters

Name Type Description
keyValue Object

The value of the RepositoryItemLookUpEditBase.ValueMember field for the row to be located.

Returns

Type Description
Object

An object representing the data source record containing the specified value. null (Nothing in Visual Basic) if no record with the specified value in the RepositoryItemLookUpEditBase.ValueMember field was found.

Remarks

The editor’s edit value is obtained from the data source field specified by the inherited RepositoryItemLookUpEditBase.ValueMember property. The GetRowByKeyValue method searches for the specified keyValue within this field in the bound data source, and returns an object representing the first found record.

See Also