RepositoryItemGridLookUpEditBase.GetIndexByKeyValue(Object) Method
Returns the index of the row containing the specified RepositoryItemLookUpEditBase.ValueMember field value.
Namespace: DevExpress.XtraEditors.Repository
Assembly: DevExpress.XtraGrid.v24.2.dll
NuGet Packages: DevExpress.Win.Grid, DevExpress.Win.Navigation
#Declaration
#Parameters
Name | Type | Description |
---|---|---|
key |
Object | The value of the Repository |
#Returns
Type | Description |
---|---|
Int32 | A zero-based index of the row containing the specified Repository |
#Remarks
The GetIndexByKeyValue method searches for the row containing the specified key value (value of the RepositoryItemLookUpEditBase.ValueMember field) and returns its index. Note, that this method gets the index of the first row found.