Not sure if this will help you but I used this for a drop down list. Maybe something similar could be used in your examples.
vb Code:
'Formatting the Drop Down List.
Dim i As Integer
For i = 0 To ddlAction.Items.Count - 1
If ddlAction.Items.Item(i).Value <> 0 Then
ddlAction.Items.Item(i).Attributes.Add("style", "color:gray")
End If
Next
Then I gave all my headers a value of 0. So non headers were formatted with the font color gray. You could use something like this just changing the attribute.
Good luck with it