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

  • Home
  • SEARCH
  • 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 3604292
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T20:58:46+00:00 2026-05-18T20:58:46+00:00

I’m currently working on a problem that has me on it’s toes for the

  • 0

I’m currently working on a problem that has me on it’s toes for the last weeks or so.

This is not a normal freezing problem solveable by multi-threading, because I’m doing this already for the business logic.

I have a View with a DataGrid, the DataContext is a ViewModel supplying an ObservableCollection<T> to a CollectionViewSource named iGroupingJournal.

<DataGrid Grid.Row="1" ItemsSource="{Binding Source={StaticResource iGroupedJournal}}">
    <DataGrid.Columns>
        <DataGridTextColumn Binding="{Binding Path=DateTime}" Header="DateTime" />
        [...]
    </DataGrid.Columns>
</DataGrid>

Usually, about 50 rows having 7 columns are displayed, which causes the application to freeze while these rows are generated.

I already ruled out the following as causes for this:

1.1. complex business class producing overhead -> tested with a data holding class, produces no increase in speed

1.2. expensive database query gets executed in the gui thread due to getting the data via LINQ -> data gets fetched in the workerthread by caling ToList and mapping the data to the aforementioned holding classes

1.3. collection grouping increases overhead -> removed the grouping header in the CollectionViewSource.

The following was tested or thought about:

2.1. Tested UI Virtualisation by removing the grouping instruction, didn’t have any effect, also grouping is a desireable feature

2.2. Data Virtualisation – won’t have an effect because 50 rows have to be created as that’s what usually shown

Conclusion

I did all I could to get the work out of the GUI thread, and it’s clearly visible by a LoadingIndicator that the moment the workerthread sends NotifyCollectionChanged to the GUI thread, the whole application freezes. Did you encounter this problem before? How did you solve it? Or am I’m really out of luck?

  • 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-18T20:58:46+00:00Added an answer on May 18, 2026 at 8:58 pm

    The reason was grouping. I thought I could just remove the groups from the CollectionViewSource, which wasn’t the case – I needed to remove the GroupTemplate as well.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I've got a string that has curly quotes in it. I'd like to replace
I am currently running into a problem where an element is coming back from
I need a function that will clean a strings' special characters. I do NOT
I'm working with an upstream system that sometimes sends me text destined for HTML/XML
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I want to count how many characters a certain string has in PHP, but
For some reason, after submitting a string like this Jack’s Spindle from a text
Basically, what I'm trying to create is a page of div tags, each has

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.