Home Forums WPF controls Xceed DataGrid for WPF Some items gets removed after refresh

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • xcxooxl
    Participant
    Post count: 2
    #44926 |

    My datagrid is bound to a list of products
    I have a filter on it, To filter by sale price/amount of sales/profit

    The datagrid is first populated by name, price, etc..
    At this stage even if I filter the data everything is ok, Products aren’t getting removed when I update the filters

    Then I extract more data by reaching to an api and updating the table.

    After I update my filters at this stage and call
    var ProductsView = ProductsGrid.ItemsSource as ListCollectionView;
    ProductsView?.Refresh();

    some of the items which were updated gets removed for no reason.
    What could cause items to get removed from a list after Refresh() ?

    xcxooxl
    Participant
    Post count: 2

    Never mind found the problem.. I did wrong filtering.. please remove this =/

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.