Solved

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

Posted on 2012-04-05
2
692 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

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…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
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…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

758 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now