gridview in asp.net VS2008
<p>Have a gridview control and i want to display checkboxes for each row. The checkboxes should only appear if Session["DisplayBox"] == true.</p>

<pre><code>&lt;asp:GridView ID="gridView" runat="server" AutoGenerateColumns="False" EnableSortingAndPagingCallbacks="True"
    AllowPaging="True" DataSourceID="JObjectDataSource" PageSize="5" OnRowCommand="gridView_RowCommand"
    DataKeyNames="ID" Width="100%"&gt;
    &lt;Columns&gt;
        &lt;asp:TemplateField HeaderText="Review"&gt;
            &lt;ItemTemplate&gt;
                &lt;asp:CheckBox  ID="chkRejectFile" AutoPostBack="true" runat="server" OnCheckedChanged="chkRejectFile_CheckedChanged" /&gt;
            &lt;/ItemTemplate&gt;
        &lt;/asp:TemplateField&gt;
    &lt;/Columns&gt;
</code></pre>

<p>I removed some of the columns and kept the one that i am asking the question about. How would I place a conditional code in the aspx page and check for the session value?</p>

<p>Also, if I page, do i have to explicitly handle keeping track of which row was checked and which wasn't?</p>
