Style the grid column for a Telerik ASP.NET RADGRID

Styling a Telerik RadGrid column sounds simple—until the framework’s skins, visual states, and server-side rendering all decide to “help.” If you’ve ever set a background color only to watch it appear only on hover, you’re not alone. In this article, we’ll walk through the clean, reliable way to color an entire RadGrid column, using server-side events that play nicely with Telerik’s theming engine. The goal is straightforward: predictable, consistent formatting that behaves exactly the way you intended.

 

Protected Sub RadGrid1_ItemDataBound(sender As Object, e As Telerik.Web.UI.GridItemEventArgs) Handles RadGrid1.ItemDataBound
 
    If TypeOf e.Item Is GridDataItem Then
        Dim dataItem As GridDataItem = CType(e.Item, GridDataItem)
 
        ' Replace "MyColumn" with your column's UniqueName
        dataItem("qtyorder").BackColor = System.Drawing.Color.LightCoral
        dataItem("qtyorder").ForeColor = System.Drawing.Color.White
 
    End If
End Sub

RealWorldCode gives developers practical, real‑world solutions with clean, working code — no fluff, no theory, just answers.
Links
Home
Knowledge Areas
Sitemap
Contact
Et cetera
Privacy Policy
Terms and Conditions
Cookie Preferences