日期:2014-05-18 浏览次数:20463 次
<asp:TemplateField ControlStyle-Width="220" FooterStyle-Width="220" HeaderStyle-Width="220" ItemStyle-HorizontalAlign="Center"> <FooterTemplate> <asp:CheckBox ID="CheckBox3" runat="server" Text="Yes" oncheckedchanged="CheckBox3_CheckedChanged" AutoPostBack="True" /> <asp:CheckBox ID="CheckBox4" runat="server" Text="No" AutoPostBack="True" /> </FooterTemplate> <HeaderTemplate> Yes or No </HeaderTemplate> <ItemTemplate> <asp:CheckBox ID="CheckBox1" runat="server" Text="Yes" /> <asp:CheckBox ID="CheckBox2" runat="server" Text="No" /> </ItemTemplate> <ControlStyle Width="180px"></ControlStyle> <FooterStyle Width="180px"></FooterStyle> <HeaderStyle Width="180px"></HeaderStyle> </asp:TemplateField>