Probably some small bug in the library; by mistake I've put an ApplySort before DataSource was assigned. Then result view.Find(...) started to return -6 on some records ...
Btw, the version in CVS (and I also think the latest released version) has a shortcut for ApplySort where you just have to specifiy the name of the sort property:
public void ApplySort(string propertyAlias, ListSortDirection direction)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Probably some small bug in the library; by mistake I've put an ApplySort before DataSource was assigned. Then result view.Find(...) started to return -6 on some records ...
view.ApplySort(view.GetItemProperties(null)["ID"], ListSortDirection.Ascending);
view.DataSource = Gui.Projects;
I guess the DataSource setter should refresh the sorting or it should deal with it somehow so that Find (InnerList.BinarySearch) will work fine.
By the way, in what place it is better to submit bugs for the library? ;)
--Gena
sorry, the subject should be: "...bug in the ApplySort method" :)
Thanks for mentioning. You can bugs and feature requests at http://objectviews.org/jira.
Btw, the version in CVS (and I also think the latest released version) has a shortcut for ApplySort where you just have to specifiy the name of the sort property:
public void ApplySort(string propertyAlias, ListSortDirection direction)
Thanks! :)
I will submit a bug for above mentioned test.