If your WebDataGrid is inside a dynamically loaded usercontrol, the CssStyle applied to any columns/headers does not get applied unless the page is reloaded (F5).
I'm not sure why this is. Any idea?
Ok, took some fiddling, but figured it out. It was because I was using the Infragistics stylesets. On the WDG I had set
StyleSetName="Office2007Black"
So the standard settings of
TBODY > TR > TD.ColumnRight
{
text-align: right;
}
.HeaderRight
did not work anymore, I had to add the names of the classes from the styleset in, so the CSS became
.igg_Office2007BlackItem > TR > TD.ColumnRight
.igg_Office2007BlackHeaderCaption.HeaderRight