<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="WebForm1.aspx.vb" Inherits="WebApplication26.WebForm1" %> <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title></title> </head> <body> <form id="form1" runat="server"> <div> <br /> <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataSourceID="ObjectDataSource1" ShowFooter="True"> <Columns> <asp:TemplateField> <EditItemTemplate> <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("XID") %>'></asp:TextBox> </EditItemTemplate> <FooterTemplate> <asp:TextBox ID="txtFooterXID" runat="server" Text='<%# Bind("XID") %>'></asp:TextBox> </FooterTemplate> <ItemTemplate> <asp:Label ID="Label1" runat="server" Text='<%# Bind("XID") %>'></asp:Label> </ItemTemplate> </asp:TemplateField> <asp:TemplateField> <EditItemTemplate> <asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("XName") %>'></asp:TextBox> </EditItemTemplate> <FooterTemplate> <asp:TextBox ID="txtFooterXName" runat="server" Text='<%# Bind("XName") %>'></asp:TextBox> </FooterTemplate> <ItemTemplate> <asp:Label ID="Label2" runat="server" Text='<%# Bind("XName") %>'></asp:Label> </ItemTemplate> </asp:TemplateField> <asp:TemplateField> <EditItemTemplate> <asp:CheckBox ID="CheckBox1" runat="server" Checked='<%# Bind("XBit") %>' /> </EditItemTemplate> <FooterTemplate> <asp:CheckBox ID="txtFooterXBit" runat="server" Checked='<%# Bind("XBit") %>' Enabled="true" /> <asp:Button ID="Button2" runat="server" Text="登録" CommandName="AddNew" /> </FooterTemplate> <ItemTemplate> <asp:CheckBox ID="CheckBox1" runat="server" Checked='<%# Bind("XBit") %>' /> </ItemTemplate> </asp:TemplateField> </Columns> </asp:GridView> </div> <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="OpenData" TypeName="WebApplication26.DataBaseReader"></asp:ObjectDataSource> </form> </body> </html>