Have a gridview control and i want to display checkboxes for each row. The checkboxes should only appear if Session["DisplayBox"] == true.
<asp:GridView ID="gridView" runat="server" AutoGenerateColumns="False" EnableSortingAndPagingCallbacks="True"
AllowPaging="True" DataSourceID="JObjectDataSource" PageSize="5" OnRowCommand="gridView_RowCommand"
DataKeyNames="ID" Width="100%">
<Columns>
<asp:TemplateField HeaderText="Review">
<ItemTemplate>
<asp:CheckBox ID="chkRejectFile" AutoPostBack="true" runat="server" OnCheckedChanged="chkRejectFile_CheckedChanged" />
</ItemTemplate>
</asp:TemplateField>
</Columns>
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?
Also, if I page, do i have to explicitly handle keeping track of which row was checked and which wasn't?