R
Rock
I have a checkbox column in a bound datagrid that returns an error when it
hits a null value: [FormatException: Input string was not in a correct
format.]
I can't modify the sql query to anticipate a null value, how can I do this
programmatically or in html code? Such as in the ItemDataBound even of the
datagrid?? Thanks for any help.
<asp:TemplateColumn HeaderText="Validated">
<ItemTemplate>
<asp:checkbox id=chk1 runat="server" Checked='<%#
DataBinder.Eval(Container.DataItem,"Validated") %>'>
</asp:checkbox>
</ItemTemplate>
</asp:TemplateColumn>
hits a null value: [FormatException: Input string was not in a correct
format.]
I can't modify the sql query to anticipate a null value, how can I do this
programmatically or in html code? Such as in the ItemDataBound even of the
datagrid?? Thanks for any help.
<asp:TemplateColumn HeaderText="Validated">
<ItemTemplate>
<asp:checkbox id=chk1 runat="server" Checked='<%#
DataBinder.Eval(Container.DataItem,"Validated") %>'>
</asp:checkbox>
</ItemTemplate>
</asp:TemplateColumn>