SortedBindingList - Finding the position of an item

SortedBindingList - Finding the position of an item

Old forum URL: forums.lhotka.net/forums/t/3868.aspx


Blarm posted on Thursday, November 08, 2007

I need to find the position of an item in a SortedBindingList and wnnt to know if there is an easier method than looping through the items checking the BaseIndex as per the FilteredIndex function in FilteredBindingList.

For FilteredBindingList there is a FilteredIndex which given the index in the original list return you the index in the filtered list.

There doesn't seem to be the equivalent SortedIndex function for the SortedBindingList.

Bill

 

William replied on Thursday, November 08, 2007

There is IndexOf() in SortedBindingList.

Copyright (c) Marimer LLC