Not able to access gridview cells value
<p>Not able to get value of gridview cells. I am binding gridview dynamically </p>

<pre><code>  &lt;asp:Panel ID="PnlGrid" runat="server" ScrollBars="Both" CssClass="gridLayout"&gt;
        &lt;asp:GridView ID="grdExamReportBatchWise" runat="server" CssClass="gridReport"       AutoGenerateColumns="false"&gt;
              &lt;Columns&gt;
            &lt;/Columns&gt;
            &lt;EmptyDataTemplate&gt;
                Records not present !
            &lt;/EmptyDataTemplate&gt;
        &lt;/asp:GridView&gt;
    &lt;/asp:Panel&gt;

    for (int i = 0; i &lt; grdExamReportBatchWise.Columns.Count - 1; i++)
    {
        if (grdExamReportBatchWise.Rows[0].Cells[i].Text == "Paper")
        {
            string ne = "abc";
        }

    }
</code></pre>
