I have the following Template column in my grid and am having problems setting the value for the edit template's numeric text box. When I click on edit I get the following error "Specified cast is not valid." If I hard code the value or use a standard text box this doesn't happen. Any thoughts?
Thanks,
Bill
Thanks,
Bill
<rad:GridTemplateColumn HeaderText="Min Value" UniqueName="MinimumValue2" > |
<ItemTemplate> |
<asp:Label runat="server" ID="lblMinValue" Text='<%# DataBinder.Eval(Container.DataItem, "MinimumValue") %>' /> |
</ItemTemplate> |
<EditItemTemplate> |
<rad:RadNumericTextBox ID="tbMinValue" runat="server" MinValue="0" MaxValue="2147483647" Value='<%# (double)DataBinder.Eval(Container.DataItem, "MinimumValue") %>' > |
</rad:RadNumericTextBox> |
</EditItemTemplate> |
</rad:GridTemplateColumn> |