Get a value of checked checkbox into a button from a Gridview

Posted by Nimish Kulkarni on Stack Overflow See other posts from Stack Overflow or by Nimish Kulkarni
Published on 2012-03-21T13:46:42Z Indexed on 2012/03/22 5:29 UTC
Read the original article Hit count: 264

Filed under:
|

I have a Gridview Generated as follows :

<asp:GridView ID="Cash_GridView" runat="server" CssClass="Grid" >
<Columns>
<asp:TemplateField>
     <ItemTemplate>
        <asp:CheckBox ID="MemberCheck" runat="server" />
     </ItemTemplate>
</asp:TemplateField>
<asp:BoundField DataField="Loan_Acno" HeaderText="Loan A/C number" />
</Columns>
</asp:Gridview>
<asp:Button ID="CashPayButton" runat="server" Text="Pay Dividend" CssClass="bluesome" OnClick="CashPayButton_Click" />

And also having the above button click event now when i click checkbox on particular row i want that whole row to be get caluclated in the Button click event in the code behind

protected void CashPayButton_Click(object sender, EventArgs e)
 { }

© Stack Overflow or respective owner

Related posts about c#

Related posts about ASP.NET