I have the following code and I always get invalid cast when going into insert.. how can I set in ititial value for a checkbox
<telerik:GridTemplateColumn HeaderText="Is Active" UniqueName="Is_Active">
<EditItemTemplate>
<asp:CheckBox id="cbIsActive" runat="server" Checked='<%# Bind("Is_Active") %>' ></asp:CheckBox>
</EditItemTemplate>
<ItemStyle HorizontalAlign="Left" />
<ItemTemplate>
<asp:Label ID="lbIsActive" runat="server" Text='<%# Eval("Is_Active", "{0}") %>' />
</ItemTemplate>
</telerik:GridTemplateColumn>
and
protected void RadGrid1_ItemCommand(object sender, GridCommandEventArgs e)
{
if (e.CommandName == RadGrid.InitInsertCommandName)
{
e.Canceled = true;
System.Collections.Specialized.ListDictionary newValues = new System.Collections.Specialized.ListDictionary();
newValues["Is_Active"] = false;
e.Item.OwnerTableView.InsertItem();
}
}