Menu

Probably small but in the Sort

2005-11-20
2013-03-07
  • gennadii_donchyts

    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

     
    • gennadii_donchyts

      sorry, the subject should be: "...bug in the ApplySort method" :)

       
    • Martijn Boland

      Martijn Boland - 2005-11-24

      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)

       
    • gennadii_donchyts

      Thanks! :)

      I will submit a bug for above mentioned test.

       

Log in to post a comment.

MongoDB Logo MongoDB