Before the final submission, you can change the payment mode. But once the challan is generated, you are not permitted to edit it. For any changes, what you can do is cancel it and generate a new one.