I want to edit the cell not its value but its background color. I know the rowIndex and the columnIndex. But to travese through the grid is a hard part. I just want something like
DataGrid.Rows[0][3].BackgroundColor=WhateverIWant
Even looping with the help of VisualTreeHelper will work, but kindly guide me through it.
Thanks
Use following method:
You can also make it as extension method on DataGrid