I added template columns to my datagrid in html view and want to disable the bound checkboxes (I still want them to be visible). I looked at the controls collection but can't seem to figure this out.
<asp:datagrid id="dgGroupMembers" runat="server" AutoGenerateColumns="False" OnItemCommand="dgGroupMembers_Command">
<Columns>
<asp:BoundColumn DataField="FullName" ReadOnly="True" HeaderText="Name"></asp:BoundColumn>
<!-- Checkboxes bound to datasource-->
<asp:TemplateColumn ItemStyle-HorizontalAlign="Center" HeaderText="Reviewer">
<ItemTemplate>
<asp:Checkbox Checked='<%# DataBinder.Eval(Container.DataItem, "IsReviewer") %>' runat="server" ID="chkIsReviewer" />
</ItemTemplate>
</asp:TemplateColumn>
<asp:ButtonColumn Text="update" CommandName="Update"></asp:ButtonColumn>
</Columns>
</asp:datagrid>
<asp:datagrid id="dgGroupMembers" runat="server" AutoGenerateColumns="False" OnItemCommand="dgGroupMembers_Command">
<Columns>
<asp:BoundColumn DataField="FullName" ReadOnly="True" HeaderText="Name"></asp:BoundColumn>
<!-- Checkboxes bound to datasource-->
<asp:TemplateColumn ItemStyle-HorizontalAlign="Center" HeaderText="Reviewer">
<ItemTemplate>
<asp:Checkbox Checked='<%# DataBinder.Eval(Container.DataItem, "IsReviewer") %>' runat="server" ID="chkIsReviewer" />
</ItemTemplate>
</asp:TemplateColumn>
<asp:ButtonColumn Text="update" CommandName="Update"></asp:ButtonColumn>
</Columns>
</asp:datagrid>