<%@ Page Language="VB" MasterPageFile="~/day02/MyMaster.master" Title="GridViewコントロール" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cph" Runat="Server">
    <asp:GridView ID="grid" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False"
        CellPadding="4" DataKeyNames="isbn" DataSourceID="sds" ForeColor="#333333" GridLines="None"
        PageSize="5">
        <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
        <Columns>
            <asp:BoundField DataField="isbn" HeaderText="isbn" ReadOnly="True" SortExpression="isbn" />
            <asp:BoundField DataField="title" HeaderText="title" SortExpression="title" />
            <asp:BoundField DataField="price" HeaderText="price" SortExpression="price" />
            <asp:BoundField DataField="published" HeaderText="published" SortExpression="published" />
            <asp:CheckBoxField DataField="cdrom" HeaderText="cdrom" SortExpression="cdrom" />
        </Columns>
        <RowStyle BackColor="#FFFBD6" ForeColor="#333333" />
        <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" />
        <PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" />
        <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
        <AlternatingRowStyle BackColor="White" />
    </asp:GridView>
    <asp:SqlDataSource ID="sds" runat="server" ConnectionString="<%$ ConnectionStrings:MyDB %>"
        SelectCommand="SELECT [isbn], [title], [price], [published], [cdrom] FROM [Book]">
    </asp:SqlDataSource>
</asp:Content>

