Changing the Row Color at RunTime RRS feed

  • Question

  • Hi

     I am binding the Data at RunTime. Depending on the Data in a row I want to change the color of the row. In which event I have to make these changes in the DataGrid. I am working on Silverlight 2.

    Thanks in advance.



    Monday, November 10, 2008 8:28 AM


  •  in the datagrid's LoadingRow event, you can set e.Row.Background color.  you can evaluate the properties of the item stored in the row by accessing e.Row.DataContext and converting it to your object type.

    Monday, November 10, 2008 9:01 AM