Hi Telerik
I'm trying to color the checkmarks in two GridViewCheckBoxColumns in a grid in our app. I have tried the following code but have only succeeded in producing visual gibberish. The entire grid is destroyed - my fault :-)
Could you please provide some guidance.
Many thanks in advance
regards
Ian Carson
I'm trying to color the checkmarks in two GridViewCheckBoxColumns in a grid in our app. I have tried the following code but have only succeeded in producing visual gibberish. The entire grid is destroyed - my fault :-)
Could you please provide some guidance.
Many thanks in advance
regards
Ian Carson
void rgvOperationsGrid_ViewCellFormatting(object sender, CellFormattingEventArgs e) { if (e.ColumnIndex == 2) { ((RadCheckBoxElement)e.CellElement.Children[0]).CheckMarkPrimitive.CheckElement.ForeColor = Color.DarkGreen; } else if (e.ColumnIndex == 3) { ((RadCheckBoxElement)e.CellElement.Children[0]).CheckMarkPrimitive.CheckElement.ForeColor = Color.DarkRed; } }