It seems CheckBoxField won't accept an ID property, so I can't directly call the component in the code behind file.
<asp:DetailsView ID="dv" runat="server" AutoGenerateRows="False"
DataKeyNames="ID" DataSourceID="ds" DefaultMode="Insert"
OnItemInserting="dv_ItemInserting" OnItemInserted="dv_ItemInserted"
OnItemUpdated="dv_ItemUpdated" OnItemCommand="dv_ItemCommand"
EnableModelValidation="True">
<Fields>
<asp:BoundField DataField="ID" HeaderText="ID" InsertVisible="false" ReadOnly="True" SortExpression="ID" />
<asp:CheckBoxField ID="chkMidmarket" DataField="Midmarket_Flag" HeaderText="Midmarket" SortExpression="Midmarket_Flag" runat="server" />
...
</Fields>
</asp:DetailsView>
How would I check the checkbox from the code behind file?