I am able to set the ColumnBackground at design time in the XAML, but when I try to set the ColumnBackground at runtime when my Window is loaded, nothing happens. For example:
myGrid.ColumnBackground = new SolidColorBrush(Colors.AliceBlue);
Is it possible to set the ColumnBackground at runtime?
2 Answers, 1 is accepted
0
Accepted
Yoan
Telerik team
answered on 04 Feb 2013, 04:39 PM
Hello John,
I am afraid that you can not set GridView's property - ColumnBackground at runtime. I would recommend you to use the CellStyleSelector instead.