Click here to Skip to main content
15,935,728 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi ,

i have a grid view which contain price field and checkbox in each row

when i check checkbox in grid view the price should be added and display in total field for this the javascriptmethod is not called

can any body help me . below is my code

<asp:GridView ID="GridView1" runat="server" CssClass="table_style1" AutoGenerateColumns="false"
                               Width="450" AllowPaging="True" PageSize="10" EmptyDataText="&lt;b&gt;No Data Available &lt;/b&gt;"
                               CellPadding="0" CellSpacing="2" PagerStyle-Height="20px" ShowFooter="false" OnPageIndexChanging="GridView1_PageIndexChanging"
                               OnPreRender="GridView1_PreRender" OnRowCommand="GridView1_RowCommand" OnRowDataBound="GridView1_RowDataBound">
                               <RowStyle />
                                   <asp:BoundField HeaderText="Question Paper Discription" DataField="QPDescription" />
                                           <asp:Label ID="lbl_1" runat="server" Text='<%#Eval("Price") %>'></asp:Label>
                                           <asp:CheckBox ID="chk_qpid" runat="server" onclick="OnSelectAll(this)" />
                                   <asp:TemplateField Visible="false">
                                           <asp:Label ID="lbl_qpid" runat="server" Text='<%#Eval("QPID") %>'></asp:Label>

Thanks and regards
pryashrma 28-Nov-12 6:42am    
cannot find control for total field

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900