Hello
I'm using the code below to change the background color for a column in my grid.
With this I expected, after populating my grid with data (it is databoud to a datatable), that column "MyColumnName" will show all his cells backgroud in yellow color.
What I get is that I see the cells with the default background color (I'm using Office 2010 Black theme for the entire application), and I only see this column in yellow if I move the mouse over one row (when it highlights) in the column "MyColumnName" in this row alone. All the rest keep the default color.
Is there something I'm missing or doing wrong? I'm using Q2 2012.
Thank you in advance.
I'm using the code below to change the background color for a column in my grid.
With this I expected, after populating my grid with data (it is databoud to a datatable), that column "MyColumnName" will show all his cells backgroud in yellow color.
What I get is that I see the cells with the default background color (I'm using Office 2010 Black theme for the entire application), and I only see this column in yellow if I move the mouse over one row (when it highlights) in the column "MyColumnName" in this row alone. All the rest keep the default color.
Is there something I'm missing or doing wrong? I'm using Q2 2012.
Thank you in advance.
Private
Sub
MyGrid_CellFormatting(sender
As
Object
, e
As
Telerik.WinControls.UI.CellFormattingEventArgs)
Handles
MyGrid.CellFormatting
If
e.CellElement.ColumnInfo.Name =
"MyColumnName"
Then
e.CellElement.BackColor = Color.Yellow
Else
e.CellElement.ResetValue(VisualElement.BackColorProperty, ValueResetFlags.Local)
End
If
End
Sub