Hi,
Whilst debugging some of my code that wasn't working I found that FilteredBindingList.Clear() is implemented as follows:
///
<summary>
/// Clears the list.
/// </summary>
public void Clear()
{
_list.Clear();
}
This seems wrong to me, as it removes all entries from the list, and not just those in the filter.
Should it not perform some conditional action with if (_filtered) in a similar vein to FilteredBindingList.Count???? e.g.
/// <summary>
/// Clears the list.
/// </summary>
public void Clear()
{
if (_filtered)
for (int index = Count - 1; index >= 0; index--)
RemoveAt(index);
else
_list.Clear();
}
Thanks for any feedback!
James