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.
…