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 8721011
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T07:09:12+00:00 2026-06-13T07:09:12+00:00

I have a WPF application that uses Caliburn.Micro. I have a DataGrid: <DataGrid x:Name=WeatherStations

  • 0

I have a WPF application that uses Caliburn.Micro. I have a DataGrid:

        <DataGrid x:Name="WeatherStations"
            Grid.Row="0"
            AutoGenerateColumns="False"
            BaseControls:DataGridExtension.Columns="{Binding WeatherStationColumns}"
            CanUserAddRows="False" IsReadOnly="True"
            SelectedIndex="{Binding SelectedIndex, Mode=TwoWay}"
            SelectedItem="{Binding Path=SelectedWeatherStation, Mode=TwoWay}">
    </DataGrid>

Because of some mysterious reason data in some cells of one of the columns is displayed with red foreground. I can’t find what could cause this, and I don’t see anything special about data in those particular cells, as the neighboring cells contain similar data, and yet that data is in black color.
What is even more strange, initially I have only a few cells with red foreground, but after I scroll down, most of the cells in that particular columns become red.

  • 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-06-13T07:09:13+00:00Added an answer on June 13, 2026 at 7:09 am

    As you scroll, a DataGrid will reuse cells for the new data being displayed. This is a process called “virtualization”. If you are setting foreground color of the the cell via a behavior or in code-behind, that foreground color will stay with the cell even if the cells value is replaced via virtualization.

    I have a hunch that somewhere in BaseControls:DataGridExtension.Columns you are setting the foreground color. When the page loads and before scrolling, the values of the red cells will probably all have something in common (all negative, below a certain threshold, erroneous, etc.). Find where that is being set in your code (code-behind or markup) and that should give you a good start in solving the issue.

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

Sidebar

Related Questions

I have a simple WPF application that uses ClickOnce to handle installing. Within this
I have an application that uses WPF Composite, and I have an issue. I've
I have a fairly large application that uses WPF for its user interface. I
I have an WPF Full Tust explorer application that uses a COM assembly. In
I have a C# WPF (.NET 4.0) application that uses Excel interop to read
I have a WPF application implemented using the MVVM framework that uses an ActiveX
I have an application that uses treeview in wpf with mvvm. The treeitem template
I have a WPF application that uses MVVM data bindings. I am adding items
I have a WPF application that uses a WCF services to perform operations on
I have a WPF application that uses a custom window frame. My problem is

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.