You have to keep in mind that because the grid reuses cell (just the displayed cells are created and drawn), you will have to reset the custom properties you set on the cell.
Best Regards,
Emanuel Varga WinForms MVP
0
Plamen
Telerik team
answered on 22 Nov 2012, 03:43 PM
Hi guys,
Cells and rows can be styled by changing the data cells back color:
e.CellElement.BackColor = Color.Red;
e.CellElement.BackColor = Color.Green;
e.CellElement.BackColor = Color.Blue;
CellFormatting event is used to add formatting to grid data cells including the new row cells.
While CellFormatting event is fired only for data cells, ViewCellFormatting is fired for all RadGridView cells. So if you want to format the grouping row or the header cells, you should use the ViewCellFormatting event.
More information about the formatting abilities of the cells can be found in these documentation article: