Solved

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

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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Printing 1 51
application restarter  - for an exe that hangs 9 26
HttpPostedFile 1 26
Dot Net 4.6.1 installation fails on W2012 R2 server 14 17
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
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…

776 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