
Using ADO.NET • Chapter 9 449
DLShippers.DataSource =
sShippers.Tables("Shippers").DefaultView
DLShippers.DataBind()
End Sub
This procedure handles the event bubbled up from the browser:
Public Sub DataList_Click(ByVal Source As Object, _
ByVal E As DataListCommandEventArgs)
DLShippers.SelectedIndex = E.Item.ItemIndex
Call BindData()
End Sub
Figure 9.10 shows the result.
This page shows the usage of the template tags and some of the options avail-
able.Template tags give us some options for formatting the different rows.They
really make the data controls very flexible and remove many of the reasons we
have for not using them.The available templates vary depending ...