Try our conversational search powered by Generative AI!

Remove payments from orderform


How do you remove payments from an orderform?

I have tried to use .RemoveAt() and .Clear() but the payments only seem to dissapear for a while and then shows up again.

I have also tried the following which just gives me a SqlException

foreach(Payment payment in orderForm)


Do anyone know or have any sugestions? 

May 26, 2016 14:47


Which SqlException do you have?

it should be

foreach(Payment payment in orderForm.Payments)

by the way

May 26, 2016 16:11
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.