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.v24.2.dll
NuGet Packages: DevExpress.Win.Navigation, DevExpress.Win.TreeList
#Declaration
#Parameters
Name | Type | Description |
---|---|---|
key |
Object | The value of the Repository |
#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 Repository |
#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.