SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 1812 | Next

Joseph W. Lowery

"Dreamweaver CS3 Bible"


DataGrid
The DataGrid server behavior enables you to rapidly add an editable DataGrid to your page. The DataGrid
can also include Insert, Update, and Delete buttons.
Requirements: One DataSet on the current page.
To add a DataGrid, follow these steps:
1. From the Server Behaviors panel, click the Add (+) button and select DataGrid from the list. The
DataGrid dialog box, shown in Figure 34-26, is displayed.
FIGURE 34-26
DataGrids cover all the necessary functions of inserting, updating, and deleting records.
2. In the ID field, enter a unique name that will appear in the Server Behaviors panel.
3. From the DataSet list, select the DataSet you want to display.
4. Enter the number of records to display in the Show box.
1078
Extending Dreamweaver Part VII
5. Choose the type of navigation from the Navigation list: Links to Previous and Next pages, or
Numbered Links to Every Page.
6. In the Columns area, use the Add (+) and Remove (??“) buttons to change the columns displayed in
the DataGrid. You can add five different types of fields:
n Simple Data Field
n Free Form
n Hyperlink
n Edit, Update, Cancel Buttons
n Delete Button
7. Click Edit to change the way a specific column is submitted to the database and displayed in the
grid.
8. Click Change Column Type to change the type of a column already in the Columns list.


Pages:
1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824