Datasheet

Figure 1-26: Dragging MenuItems onto the main editor pane
7. Now the magic begins. You will see that VWD creates a grid in the page using the new ASP.NET
GridView control, with columns that match those in the source data table (such as MenuItemID,
MenuItemType, and ItemName). It also adds a control named SqlDataSource to the page, just
below the grid. In addition, to the right of the grid, a Task pane with the title GridView Tasks
appears (see Figure 1-27).
Figure 1-27: GridView Tasks pane
Note: If you previously experimented with the free tool named WebMatrix for versions 1.0 and 1.1 of
ASP.NET, you will probably be feeling a strange sense of familiarity creep over you looking at the
results shown here. WebMatrix was, in many ways, a test platform for the ASP.NET 2.0 concept of
using data source controls and intelligent grid controls to display data. The Web Matrix
MXDataGrid
control was the forerunner to the new ASP.NET 2.0 GridView control, and the Web Matrix
MXSqlDataSource control was the forerunner to the SqlDataSource (and other data source) con-
trols in ASP.NET 2.0.
24
Chapter 1
04_588079 ch01.qxd 11/29/05 3:48 PM Page 24