Get a value of checked checkbox into a button from a Gridview
- by Nimish Kulkarni
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)
{ }