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
Cool! Thanks for the quick feedback!!
And also, a big thank you for all your efforts on this amazing framework!!
Cheers,
James
Hi Rocky,
Sorry for the delay in getting back to you... all looks good to me!
Many thanks,
James
Hi Rocky,
Is there any chance you could also put this fix into the 3.0.x source please?
Many thanks,
James
Copyright (c) Marimer LLC