Hi,
I would like to have the different rows selected in a grid with different colors...The selection color will match the color of a line in a chart. I was able to change the background color using the GridSelectionBackgroundColor of a DataGridStyle.. but this as the effect that all selected rows change color not just one row
I tried something somilar to this:
int currentColorIndex = 0;
void DataGrid_SelectionChanging(object sender, GridSelectionChangingEventArgs e)
{
for (int i = 0; i < e.AddedItems.Count; i++)
{
gridStyle.GridSelectionBackgroundColor = colorForSelection(currentColorIndex );
currentColorIndex ++;
}
}
Just in case it could have some impact we are using dynamic column