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.1.dll
NuGet Package: DevExpress.Win.Navigation
Declaration
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.