Solved

How to change the background color of a grid row in Silverlight

Posted on 2012-04-05
2
697 Views
Last Modified: 2012-06-27
I have a Silverlight grid to which I dynamically add rows.
Based on the value of an object I need to set the background color of that row.

How can I do this programmatically.

<Grid x:Name="gridA" HorizontalAlignment="Left"  Grid.RowSpan="99"  Grid.ColumnSpan="99" VerticalAlignment="Top" ShowGridLines="True" > 
 </Grid>

 
Code behind

                RowDefinition rowDef = new RowDefinition() { Height = GridLength.Auto   };
0
Comment
Question by:countrymeister
  • 2
2 Comments
 
LVL 22

Expert Comment

by:plusone3055
ID: 37813253
0
 
LVL 22

Accepted Solution

by:
plusone3055 earned 250 total points
ID: 37813260
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question