Link to home
Start Free TrialLog in
Avatar of countrymeister
countrymeister

asked on

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

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   };
Avatar of plusone3055
plusone3055
Flag of United States of America image

ASKER CERTIFIED SOLUTION
Avatar of plusone3055
plusone3055
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial