This question is locked. New answers and comments are not allowed.
I'm using MVC 3 with Razor. I have an Edit comand on the row of the grid.
When a user clicks on Edit (this places the grid in Edit mode with an Update and Cancel button), I want to set a property for two of the columns to readonly. The reason for this is because these two columns are unique to my table and am using the same View for an Insert as well. The Insert will not have these columns set to read only.
When the user clicks on Cancel or Update, I want to set the columns back to the original properties.
I know there must be some properties in the controller I should be able to set when the Edit button is pressed for this, but have not seen any docs on how to accomplish this.
How can I do this?