RepositoryItemLookUpEdit.GetDataSourceRowByDisplayValue(Object) Method
Returns a data source row containing the specified RepositoryItemLookUpEditBase.DisplayMember field value.
Namespace: DevExpress.XtraEditors.Repository
Assembly: DevExpress.XtraEditors.v24.1.dll
NuGet Package: DevExpress.Win.Navigation
Declaration
Parameters
Name | Type | Description |
---|---|---|
displayValue | Object | The value of the RepositoryItemLookUpEditBase.DisplayMember 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.DisplayMember field was found. |
Remarks
The lookup editor displays values from the associated data source field specified by the RepositoryItemLookUpEditBase.DisplayMember property. The GetDataSourceRowByDisplayValue method searches for the specified value within this field and returns an object representing the first found record.
The GetDataSourceRowByDisplayValue method’s return value depends upon the type of the underlying data source. If the data source is a System.Data.DataTable or a System.Data.DataView, this method returns a System.Data.DataRowView object. If the data source is a custom list of items, the appropriate list item is returned.