Hi,
i have a radgrid which has 1 checkbox inside.
It work fine if i edit or delete the record in the radgrid but error come out when i want to add data in the radgrid
Below is my coding
The error is as below
Conversion from type 'DBNull' to type 'Boolean' is not valid.
Does anyone has idea on how to eliminate this error?
i have a radgrid which has 1 checkbox inside.
It work fine if i edit or delete the record in the radgrid but error come out when i want to add data in the radgrid
Below is my coding
<ajax:GridTemplateColumn UniqueName="GCStatus" Headertext="Active" SortExpression ="Active"> |
<ItemTemplate > |
<asp:CheckBox runat="server" ID ="chkActive" Checked='<%# DataBinder.Eval(Container.DataItem, "Active") %>' Enabled =false /> |
</ItemTemplate> |
<EditItemTemplate > |
<asp:CheckBox runat="server" ID ="chkActive" Checked='<%# DataBinder.Eval(Container.DataItem, "Active" ) %>' /> |
</EditItemTemplate> |
</ajax:GridTemplateColumn> |
The error is as below
Conversion from type 'DBNull' to type 'Boolean' is not valid.
Does anyone has idea on how to eliminate this error?