Member
20 Points
312 Posts
Jan 18, 2009 04:49 PM|javan15|LINK
I keep on getting an error when trying to delete a record in a gridview that is bound to an entitydatasource. The error I get is:
Error while setting property 'Amount': '$120.00 is not a valid value for Decimal.'.
Can someone please help? Below is my markup
Use the form to the right to create a personal expense
Member
20 Points
312 Posts
Error when deleting in Gridview and EntityDataSource when column has DataFormatString
Jan 18, 2009 04:49 PM|javan15|LINK
I keep on getting an error when trying to delete a record in a gridview that is bound to an entitydatasource. The error I get is:
Error while setting property 'Amount': '$120.00 is not a valid value for Decimal.'.
Can someone please help? Below is my markup
Use the form to the right to create a personal expense
</h1> </EmptyDataTemplate> </asp:GridView> <asp:EntityDataSource ID="dsEmployeePersonalExpenses" runat="server" Include="TransactionCategory" EnableDelete="True" ContextTypeName="MYCONTEXTTYPENAMEHE" OrderBy="it.ExpenseDate desc" EntitySetName="EmployeePersonalExpenseSet" Where="it.Employee.EmployeeId = @employeeId"> <WhereParameters> <asp:Parameter Name="employeeId" Type="Int32" /> </WhereParameters> </asp:EntityDataSource>