<p>I am using a .NET Windows Forms DataGridView and I need to edit a DataBound column (that binds on a boolean DataTable column). For this I specify the cell template like this:</p>

<p>DataGridViewColumn column = new DataGridViewColumn(new DataGridViewCheckBoxCell());</p>

<p>You see that I need a CheckBox cell template.</p>

<p>The problem I face is that this column is constantly readonly/disabled, as if it would be of TextBox type. It doesn't show a checkbox at all.</p>

<p>Any thoughts on how to work with editable checkbox columns for DataGridView?</p>

<p>Update: For windows forms, please.</p>

<p>Thanks.</p>

Create a TemplateField and bound the id to it, something like this:
```
```
<asp:TemplateField HeaderText="Whatever" SortExpression="fieldname" ItemStyle-HorizontalAlign="Center">
    <ItemTemplate>
        <asp:CheckBox runat="server" ID="rowCheck" key='<%# Eval("id") %>' />
    </ItemTemplate>
</asp:TemplateField>
```
```