Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6641817
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T23:51:20+00:00 2026-05-25T23:51:20+00:00

I got a ListView with an ItemsSource collection, where ObservableCollection<string> is set. And, the

  • 0

I got a ListView with an ItemsSource collection, where ObservableCollection<string> is set.
And, the ListView contains a filter in its ListView.Items.Filter property (as a Predicate<bool,object>.

So let’s say there are conditions when the filter can change its behavior without changing its own reference.

And when those conditions change i need to let the ListView know that it has to reconstruct its view according to the new filter.

The only solution i’ve figured is

ListView.Items.Filter = ListView.Items.Filter;

which is wrong but it still works. Updates each item again with the filter.

So is there right solution for that?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T23:51:21+00:00Added an answer on May 25, 2026 at 11:51 pm

    You need to get a hold of the collection view (ICollectionView) that the ListView is bound to and Refresh() it. It’s not clear to me how you’ve bound to your data, but you can either:

    • Bind to a collection view explicitly
    • Bind to a collection and have the control automatically bind to the default collection view

    It sounds like you’ve done the latter, in which case you can use:

    CollectionViewSource.GetDefaultView(theCollection).Refresh();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've got a ListView control bound to an ObservableCollection of items, and I've set
I´ve got a ListView which is bound to the ObservableCollection mPersonList. The Class Person
I got: <ListView.View GridViewColumnHeader.Click=ColumnHeaderClick> <GridView> <GridViewColumn x:Name=Col Header=Item> private void ColumnHeaderClick(object sender, RoutedEventArgs e)
I've got a ListView with a custom BaseAdapter. The list items contain CheckBoxes that
I've got a simple ListView which pulls data from an ObservableCollection and I'm using
I've got problem with Listview in Android. Then I try to set adapter to
Hey guys I got a ListView within a dialog set up however when i
I've got a TabControl which contains a nested ListView. The ListView is bound to
I'm developing a component (backend). I got a listview with a $_GET that contains
I've got a ListView object, with a GridView within it, where I'll be putting

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.