
484 Chapter 10 • Developing Web Applications
Date"/>
<asp:BoundColumn datafield="ShippedDate"
headertext="Shipped Date"/>
<asp:BoundColumn datafield="ShipName" headertext="Ship
Name"/>
</Columns>
</asp:DataGrid>
4. Compile the application and run it in the browser. Enter the Customer
ID (HANAR) and click the Get Order Details button.The grid con-
trol will output only the columns we asked for.
Observe the output, see that the columns Order Date and Shipped
Date include the time. Here the time is always midnight. Let’s apply
one more customization to the DataGrid control to format the date
columns. Like the BoundColumn control, DataGrid supports the
TemplateColumn ...