Get a value of checked checkbox into a button from a Gridview
<p>I have a Gridview Generated as follows :</p>

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

<p>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</p>

<pre><code>protected void CashPayButton_Click(object sender, EventArgs e)
 { }
</code></pre>
