日期:2014-05-20  浏览次数:20547 次

2个问题js和gridview
1。我在gridview放了checkbox全选的列,可是运行后,该列没有显示
代码如下
<asp:GridView   ID= "gvComUnion "   runat= "server "   AllowPaging= "True "   AutoGenerateColumns= "False "
              BackColor= "White "   BorderColor= "#3366CC "   BorderStyle= "Solid "   BorderWidth= "1px "
              CellPadding= "4 "   Font-Size= "12px "   HorizontalAlign= "Left "   OnPageIndexChanging= "gvParty_PageIndexChanging "  
              OnRowEditing= "gvParty_RowEditing "   PageSize= "15 "   Width= "556px "   OnRowDataBound= "gvParty_RowDataBound "   OnLoad= "gvParty_Load "   OnRowCreated= "gvParty_RowCreated "   Font-Names= "宋体 "   OnSelectedIndexChanged= "gvComUnion_SelectedIndexChanged "   >
              <PagerSettings   FirstPageText= "第一页 "   LastPageText= "最后一页 "   Mode= "NextPreviousFirstLast "
                  NextPageText= "下一页 "   PreviousPageText= "上一页 "/>
              <FooterStyle   BackColor   =   "#EFEFEF "   ForeColor   =   "#000D47 "   />
                <Columns>
               
                        <asp:TemplateField>
                                <HeaderTemplate>
                                    <asp:CheckBox   ID= "CheckBox1 "   runat= "server "   Text= "全选 "   AutoPostBack= "true "   OnCheckedChanged= "CheckAll "   />
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <asp:CheckBox   ID= "ItemCheckBox "   runat= "server "   />
                                </ItemTemplate>
                            </asp:TemplateField>


                        <asp:BoundField   DataField= "COMID "   HeaderText= "会员编号 "/>
                        <asp:BoundField   DataField= "COMNAME "   HeaderText= "单位名称 "   />
                        <asp:BoundField   DataField= "COMINLOW "   HeaderText= "所有制 "   />
                        <asp:BoundField   DataField= "BUSINESS "   HeaderText= "行业 "   />