J
JLeary
Hi all,
All I want to do is assign an editable checkbox to a column of type
CHAR(1)..values 'Y' or 'N'. I have the template column specified, but I keep
getting a cast exception. Is there no intrinsic conversion to 'bool' for
this value range? I understand how to convert prior to update.
<asp:TemplateColumn HeaderText="Billable">
<ItemTemplate>
<asp:CheckBox id="CheckBox1" runat="server" Checked='<%#
DataBinder.Eval(Container,"DataItem.billable_flag") %>'></asp:CheckBox>
</ItemTemplate>
</asp:TemplateColumn>
Thanks in advance...
All I want to do is assign an editable checkbox to a column of type
CHAR(1)..values 'Y' or 'N'. I have the template column specified, but I keep
getting a cast exception. Is there no intrinsic conversion to 'bool' for
this value range? I understand how to convert prior to update.
<asp:TemplateColumn HeaderText="Billable">
<ItemTemplate>
<asp:CheckBox id="CheckBox1" runat="server" Checked='<%#
DataBinder.Eval(Container,"DataItem.billable_flag") %>'></asp:CheckBox>
</ItemTemplate>
</asp:TemplateColumn>
Thanks in advance...