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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T08:40:05+00:00 2026-05-26T08:40:05+00:00

I am writing a silverlight app that lets you parse copied text via entered

  • 0

I am writing a silverlight app that lets you parse copied text via entered delimiters. After the data is parsed and dropped into the grid, the user has the ability to “Scrub” the data. This compares the current value of a cell to the allowed values for the column, picks its best guess and rebinds the data to the grid via the ItemsSource property.

My problem is that I know the coordinates of each cell that has been “Scrubbed”, and I would like to highlight this cell or change its background color. As far as I can see, you can set a DataGridCell’s background individually, but I have no way to access the DataGridCell. I have access to the Grid’s columns and rows, but these also do not appear to give access to the DataGridCell as I had hoped. Does anyone have a way to access a DataGridCell after the ItemsSource has been set?

  • 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-26T08:40:05+00:00Added an answer on May 26, 2026 at 8:40 am

    If you loop through the collection your ItemsSource is bound to, you can then take each row and go through the columns getting the content and cell – something like this (trick is the content.Parent as DataGridCell):

    var collection = grid.ItemsSource;
    foreach (var dataItem in collection)
    {
      foreach (var col in grid.Columns)
      {
        var content = col.GetCellContent(dataItem);
        if (content != null)
        {
            DataGridCell cell = content.Parent as DataGridCell;
            // do whatever you need to do with the cell like setting cell.Background 
        }
      }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm writing a silverlight app that queries a web service to populate a tree
I'm writing a silverlight application that resembles a shopping cart system. This app can
I am writing a Silverlight client that interacts with an SQL database via ASP.NET
I am writing a Silverlight application that will be both reading and writing data
I'm trying to build a Silverlight App that accesses and presents data from a
I am writing a Silverlight 4 (could be 5) app that will run out
When writing a Silverlight app hooked up to a WCF Web Service, the only
I'm writing a Silverlight app using the MVVM pattern. I have a main view
During a Mix10 presentation , the presenter (Charlie Kindel) said that when writing Silverlight
In a Silverlight application, instead of consuming and writing (wcf) wrappers around messages that

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.