ADO.NET 101: Data Rendering with a DataGrid Control - Display formatted data using AutoFormat
(Page 6 of 7 )
If you click the link shown in the property window of the DataGrid, you open up the following window where you can choose pre-canned formatting of the DataGrid.

For the chosen scheme, Colorful3, the displayed data will be as shown:

Autoformatting makes changes to the following aspects of the DataGrid.
- Appearance
- Backcolor
- Bordercolor
- borderwidth
- Layout
- Style
- HeaderStyle
- FooterStyle
- AlternatignItemStyle
- ItemStyle
Display formatted data by configuring the Properties windowDesign time properties can be set so as to affect the following aspects of the DataGrid. You can make entries to the available design time properties such as:
Appearance
Behavior
Data
Layout
Miscellaneous
Paging
Style
You can also mix the methods. You can choose some from AutoFormat and later make some changes to the properties via the Property window. For example some HeaderStyle information is changed here as shown.

With these changes made to the autoformatted data, the browser display is now as shown here.

Next: Formatting via Code >>
More ASP Articles
More By Jayaram Krishnaswamy