Hi, I'm starting with the RadGrid control ...
I have a grid with several columns of type GridTemplateColumn
In this column, when i try to add a new record inplace, it returns me an error saying "The conversion of type 'DBNull' to type 'Boolean' is not valid."
<Telerik: GridTemplateColumn DataField = "Active" HeaderText = "Active" SortExpression = "Active" UniqueName = "Active">
<itemtemplate>
<asp: CheckBox Enabled = "false" ID = "CheckboxlblActivo" runat = "server" Checked ='<%# Bind ( "Active")%> '>
</ asp: CheckBox>
</ ItemTemplate>
<EditItemTemplate>
<asp: CheckBox ID = "CheckboxActivo" runat = "server" Checked ='<%# Bind ( "Active")%> '>
</ asp: CheckBox>
</ EditItemTemplate>
</ Telerik: GridTemplateColumn>
How can I check that Bind ( "Active") is not null? i'm adding a new record
<EditItemTemplate>
<asp: CheckBox ID = "CheckboxActivo" runat = "server" Checked ='<%# Bind ( "Activo")%> '>
</ asp: CheckBox>
</ EditItemTemplate>
Many thanks, any help o directions are appreciated
I have a grid with several columns of type GridTemplateColumn
In this column, when i try to add a new record inplace, it returns me an error saying "The conversion of type 'DBNull' to type 'Boolean' is not valid."
<Telerik: GridTemplateColumn DataField = "Active" HeaderText = "Active" SortExpression = "Active" UniqueName = "Active">
<itemtemplate>
<asp: CheckBox Enabled = "false" ID = "CheckboxlblActivo" runat = "server" Checked ='<%# Bind ( "Active")%> '>
</ asp: CheckBox>
</ ItemTemplate>
<EditItemTemplate>
<asp: CheckBox ID = "CheckboxActivo" runat = "server" Checked ='<%# Bind ( "Active")%> '>
</ asp: CheckBox>
</ EditItemTemplate>
</ Telerik: GridTemplateColumn>
How can I check that Bind ( "Active") is not null? i'm adding a new record
<EditItemTemplate>
<asp: CheckBox ID = "CheckboxActivo" runat = "server" Checked ='<%# Bind ( "Activo")%> '>
</ asp: CheckBox>
</ EditItemTemplate>
Many thanks, any help o directions are appreciated