用法
<asp:GridView ID="gvPackagingCostRequest" runat="server" AutoGenerateColumns="false"
AllowPaging="true" CssClass="t_part" PageSize="20" >
<Columns>
<HeaderTemplate>
<input type="checkbox" id="chkAll" οnclick="check('chkAll','gvPackagingCostRequest');" />
</HeaderTemplate>
<ItemTemplate>
<asp:CheckBox ID="chkApply" runat="server" class="chk" name="chkApply" οnclick="cacelPart('chkAll','gvPackagingCostRequest',this)" />
</ItemTemplate>
<ItemStyle HorizontalAlign="Center" Width="8px" />
</asp:TemplateField>
</Columns>
</asp:GridView>