Find Index of specific value in multidimension Array.

  • Thread starter Thread starter labjac
  • Start date Start date
L

labjac

Guest
Hallo

We using a DataGrid to display and select a specific multi dimension objects in a array. I need to find a way to get the index of a selected object based on one element in the list.

There a collection of single objects to a list. Example below..

I tried indexof and FindIndex, but the result is -1... So somewhere I missing the point..

1615228.jpg

Trying to find the index of a object based on a value, for instance CompanyID 1, index of the list is [0]

1615229.jpg

I do get the CompanyID selected correctly, but I would like to find the index of the SingleCompany in the List.

1615230.jpg



labjac

Continue reading...
 
Back
Top