Hi @ameneh maleki,
Thanks for reaching out to us. We are very pleased to support you.
According to the information you provided and the research I have done, I may understand that you want to disable Column2 in the view (display or edit?) based on the value of Column1. If there is anything wrong, please correct me.
If there is not anything wrong, it is sorry to say that we can't disable another column (display or edit) in the view based on the value of one column. The smallest unit of operation in SharePoint list view is column, which means we can only disable a whole column.
We would like to make sincere apology for the inconvenience caused. Meanwhile, it is proposed that you can vote your feedback via this link. With higher feedback like this, MS will take this into serious account and make some modifications accordingly, which will benefit more community members.
Thanks for your meaningful contributions.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. It will be beneficial to more community members reading here. Your contribution will be highly appreciated.