Hello,
I want to change background color to gridview column when user click in a cell. I have this code:
I want to change background color to gridview column when user click in a cell. I have this code:
private void SelectColumn (string columnName)
{
foreach (var column in GridViewNew.Columns)
{
if (column == columnName)
{
((GridViewDataColumn)column ).Background = new SolidColorBrush(Color.FromArgb(255, 165, 215, 241));
}
else
{
((GridViewDataColumn) column ).Background = new SolidColorBrush(Colors.White);
}
}
}
At first it works, but when i click over another cell, the column chages its color but column´s footer doesn´t.