I have a grid that has databound columns that are defined in the aspx code. When preparing the data for NeedDataSource(), more columns will be dynamically added to the right side of the grid. This all works great. My problem is that some of these dynamically added columns will need the color of the font of the LinkButton (for sorting) in the header to turn gray once databound. Which header column needs to change will be tracked on the server side. So my question is: Where is the best place on the server side (which event) to change the font color for the header column and how?
I've tried setting the .ForeColor property to gray & setting the .CssClass property in the ItemCreated, ItemDatabound, & PreRender events to no avail. I do have a custom skin on my grid.
I've tried setting the .ForeColor property to gray & setting the .CssClass property in the ItemCreated, ItemDatabound, & PreRender events to no avail. I do have a custom skin on my grid.