Examining the DataGrid's Aesthetic Properties

Recall that when we examined the Label Web control, the TextBox Web control, the DropDownList Web control, and so on, we noted that these controls had what are called aesthetic properties, which affect the visual appearance of the rendered Web control in the Web page. For example, with the Label Web control, we could set the ForeColor property to specify the color for the Label's text.

The DataGrid Web control, like all Web controls, has a number of aesthetic properties as well, such as ForeColor, BackColor, Font, and so on. Setting the DataGrid's aesthetic properties affects the entire DataGrid. For example, if you set the DataGrid's Font proper ties Name subproperty to Verdana, all text displayed ...

Get SAMS Teach Yourself ASP.NET in 24 Hours now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.