You can easily achieve this, by using a CellStyleSelector, without any need of changing GridViewCell's template. I have prepared a sample project for you that illustrates this. Please, refer to the attachment.
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>