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 the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.