Lee:
What you're looking at is the code as it runs on the server side. Before the "control" gets to the browser, SharePoint converts it into plain old HTML markup, often with some script to drive the behavior.
So what it seem you want to do is switch from displaying the current value of a field (column) to editing it, or vice versa. Usually this would be in response to some user action, like checking a checkbox in one column disabling another column. This becomes a purely JavaScript (or jQuery) exercise on the client side and has nothing to do with the original ControlMode value.
M.
What you're looking at is the code as it runs on the server side. Before the "control" gets to the browser, SharePoint converts it into plain old HTML markup, often with some script to drive the behavior.
So what it seem you want to do is switch from displaying the current value of a field (column) to editing it, or vice versa. Usually this would be in response to some user action, like checking a checkbox in one column disabling another column. This becomes a purely JavaScript (or jQuery) exercise on the client side and has nothing to do with the original ControlMode value.
M.