| |
| ASP.NET Pages with Data |
| Format the DataGrid |
In this walkthrough, you will change the
formatting options to alter the look and feel of the DataGrid.
- Open the myFirstDataPage.aspx file in Design view.
- Select the Design tab.
- Select the DataGrid.
- Click the Auto Format link at the bottom of the Properties
window.
- The Auto Format dialog box will appear. The Auto Format
dialog box allows you to select a predefined set of colors, border styles,
and other settings (referred to as a scheme) and apply them to the
DataGrid control.
- Select the Simple 1 option in the scheme ListBox. When
you select a scheme, the scheme's settings are applied to properties of
the control. Note the preview of how the DataGrid will look with
the scheme applied.
- Click OK.
- Save and run the ASP.NET page.
- Your ASP.NET page will automatically appear in a new instance of your
Web browser.
- Type 1 into the TextBox and press the Button.
Note that the MasterGrid implements the formatting options of the
Simple 1 scheme.
- Close the Web browser instance.
Next Step >> |
|