It's easy enough to add a class to a td in a webgrid, for example:
new WebGridColumn {
ColumnName= "Owl.Species",
Header= "Scientific Name",
Style= "sci-name"
}
The style tag adds the class "sci-name" to the td
. How can I add a class to the th
for that column without using jQuery which wouldn't be the ideal solution.