This question is locked. New answers and comments are not allowed.
I've got a gridview and a persistent class which is binded to the gridview via ObjectView. I want to search for a specific row in a specific condition then focus to that row. For doing that I used the following code to find the specific row, now I want to find the index of the result in the grid so that I can focus on the specific row in the grid:
I don't know how to use IndexOf method of ObjectView, every time I use this function I get -1 as a result.
What should I do??
IObjectScope scope = ObjectScopeProvider1.ObjectScope();
var result = from c in scope.Extent<
MyPersistentClass
>()
where c.Id == 1
select c;
I don't know how to use IndexOf method of ObjectView, every time I use this function I get -1 as a result.
What should I do??