A Look at the GridView’s New Sorting Styles in ASP.NET 4.0
Like every Web control in the ASP.NET toolbox, the GridView includes a variety of style-related properties, including CssClass , Font , ForeColor , BackColor , Width , Height , and so on. The GridView also includes style properties that apply to certain classes of rows in the grid, such as RowStyle , AlternatingRowStyle , HeaderStyle , and PagerStyle . Each of these meta-style properties offer the standard style properties ( CssClass , Font , etc.) as subproperties.
See original here:
A Look at the GridView’s New Sorting Styles in ASP.NET 4.0